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

Unified Diff: src/deoptimizer.cc

Issue 348313002: Introduce a PrototypeIterator template and use it all over the place (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 years, 6 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 | « src/builtins.cc ('k') | src/heap-snapshot-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.cc
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
index 2b39ff6965e89a1290c03d1af0ea33c20c2c963a..66a2d2554198e7e9e7ca5b0e7aed194df1435375 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -12,6 +12,7 @@
#include "src/global-handles.h"
#include "src/macro-assembler.h"
#include "src/prettyprinter.h"
+#include "src/prototype-iterator.h"
namespace v8 {
@@ -459,7 +460,7 @@ void Deoptimizer::DeoptimizeGlobalObject(JSObject* object) {
reinterpret_cast<intptr_t>(object));
}
if (object->IsJSGlobalProxy()) {
- Object* proto = object->GetPrototype();
+ Object* proto = SAFE_GET_PROTOTYPE_FAST(object);
CHECK(proto->IsJSGlobalObject());
Context* native_context = GlobalObject::cast(proto)->native_context();
MarkAllCodeForContext(native_context);
« no previous file with comments | « src/builtins.cc ('k') | src/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698