Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: src/builtins.cc

Issue 7067019: Handle changes to the Object prototype in fast handling of arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-1403.js » ('j') | test/mjsunit/regress/regress-1403.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.cc
diff --git a/src/builtins.cc b/src/builtins.cc
index c398aa30fbbd4142324453e5ee56b1dd2da37aa5..3f78283388c8671048b1e1c60f3ddb7ff007a1e4 100644
--- a/src/builtins.cc
+++ b/src/builtins.cc
@@ -378,8 +378,7 @@ static bool ArrayPrototypeHasNoElements(Heap* heap,
array_proto = JSObject::cast(proto);
if (array_proto != global_context->initial_object_prototype()) return false;
antonm 2011/05/24 10:38:20 while you're here, may you swap these two lines?
Søren Thygesen Gjesse 2011/05/24 12:25:52 Not sure which two lines you mean. Also Array.p
antonm 2011/05/24 12:33:59 Sorry, I mean JSObject::cast and != global_context
if (array_proto->elements() != heap->empty_fixed_array()) return false;
- ASSERT(array_proto->GetPrototype()->IsNull());
- return true;
+ return array_proto->GetPrototype()->IsNull();
}
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-1403.js » ('j') | test/mjsunit/regress/regress-1403.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698