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

Side by Side Diff: src/runtime/runtime-debug.cc

Issue 2036493006: Keep prototype maps in dictionary mode until ICs see them (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: make ignition tests happy Created 4 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 unified diff | Download patch
« no previous file with comments | « src/runtime/runtime-array.cc ('k') | src/runtime/runtime-forin.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/runtime/runtime-utils.h" 5 #include "src/runtime/runtime-utils.h"
6 6
7 #include "src/arguments.h" 7 #include "src/arguments.h"
8 #include "src/debug/debug-evaluate.h" 8 #include "src/debug/debug-evaluate.h"
9 #include "src/debug/debug-frames.h" 9 #include "src/debug/debug-frames.h"
10 #include "src/debug/debug-scopes.h" 10 #include "src/debug/debug-scopes.h"
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 instances->set(i, *wrapper); 1189 instances->set(i, *wrapper);
1190 } 1190 }
1191 1191
1192 // Return result as a JS array. 1192 // Return result as a JS array.
1193 return *isolate->factory()->NewJSArrayWithElements(instances); 1193 return *isolate->factory()->NewJSArrayWithElements(instances);
1194 } 1194 }
1195 1195
1196 static bool HasInPrototypeChainIgnoringProxies(Isolate* isolate, 1196 static bool HasInPrototypeChainIgnoringProxies(Isolate* isolate,
1197 JSObject* object, 1197 JSObject* object,
1198 Object* proto) { 1198 Object* proto) {
1199 PrototypeIterator iter(isolate, object, PrototypeIterator::START_AT_RECEIVER); 1199 PrototypeIterator iter(isolate, object, kStartAtReceiver);
1200 while (true) { 1200 while (true) {
1201 iter.AdvanceIgnoringProxies(); 1201 iter.AdvanceIgnoringProxies();
1202 if (iter.IsAtEnd()) return false; 1202 if (iter.IsAtEnd()) return false;
1203 if (iter.GetCurrent() == proto) return true; 1203 if (iter.GetCurrent() == proto) return true;
1204 } 1204 }
1205 } 1205 }
1206 1206
1207 1207
1208 // Scan the heap for objects with direct references to an object 1208 // Scan the heap for objects with direct references to an object
1209 // args[0]: the object to find references to 1209 // args[0]: the object to find references to
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
1743 return Smi::FromInt(isolate->debug()->is_active()); 1743 return Smi::FromInt(isolate->debug()->is_active());
1744 } 1744 }
1745 1745
1746 1746
1747 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 1747 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
1748 UNIMPLEMENTED(); 1748 UNIMPLEMENTED();
1749 return NULL; 1749 return NULL;
1750 } 1750 }
1751 } // namespace internal 1751 } // namespace internal
1752 } // namespace v8 1752 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime-array.cc ('k') | src/runtime/runtime-forin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698