Advertisement
bashor

v8_MapTransition.patch

Apr 2nd, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. diff --git a/src/objects.cc b/src/objects.cc
  2. index f001d3c..36101a5 100644
  3. --- a/src/objects.cc
  4. +++ b/src/objects.cc
  5. @@ -1637,6 +1637,14 @@ MaybeObject* JSObject::AddFastProperty(String* name,
  6. MaybeObject* maybe_new_map = map()->CopyAddDescriptor(&new_field, flag);
  7. if (!maybe_new_map->To(&new_map)) return maybe_new_map;
  8.  
  9. + if (FLAG_print_code) {
  10. + SmartArrayPointer<char> c_string = name->ToCString();
  11. + PrintF("Map Transition: %p + %s -> %p\n",
  12. + static_cast<void*>(map()),
  13. + *c_string,
  14. + static_cast<void*>(new_map));
  15. + }
  16. +
  17. if (map()->unused_property_fields() == 0) {
  18. ASSERT(values != NULL);
  19. set_properties(values);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement