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

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

Issue 1402973002: Move some code from Runtime_GetPrototype into a new Object::GetPrototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
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.h" 8 #include "src/debug/debug.h"
9 #include "src/debug/debug-evaluate.h" 9 #include "src/debug/debug-evaluate.h"
10 #include "src/debug/debug-frames.h" 10 #include "src/debug/debug-frames.h"
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1445 return *isolate->factory()->NewJSArrayWithElements(result); 1445 return *isolate->factory()->NewJSArrayWithElements(result);
1446 } 1446 }
1447 1447
1448 1448
1449 // Find the effective prototype object as returned by __proto__. 1449 // Find the effective prototype object as returned by __proto__.
1450 // args[0]: the object to find the prototype for. 1450 // args[0]: the object to find the prototype for.
1451 RUNTIME_FUNCTION(Runtime_DebugGetPrototype) { 1451 RUNTIME_FUNCTION(Runtime_DebugGetPrototype) {
1452 HandleScope shs(isolate); 1452 HandleScope shs(isolate);
1453 DCHECK(args.length() == 1); 1453 DCHECK(args.length() == 1);
1454 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); 1454 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
1455 return *Object::GetPrototypeSkipHiddenPrototypes(isolate, obj); 1455 return *Object::GetPrototypeWithAccess(isolate, obj);
neis 2015/10/13 14:55:54 Is it correct to not do an access check here? If
Toon Verwaest 2015/10/14 10:56:18 Given that the other 2 cases deal with Object.obse
1456 } 1456 }
1457 1457
1458 1458
1459 // Patches script source (should be called upon BeforeCompile event). 1459 // Patches script source (should be called upon BeforeCompile event).
1460 RUNTIME_FUNCTION(Runtime_DebugSetScriptSource) { 1460 RUNTIME_FUNCTION(Runtime_DebugSetScriptSource) {
1461 HandleScope scope(isolate); 1461 HandleScope scope(isolate);
1462 DCHECK(args.length() == 2); 1462 DCHECK(args.length() == 2);
1463 1463
1464 CONVERT_ARG_HANDLE_CHECKED(JSValue, script_wrapper, 0); 1464 CONVERT_ARG_HANDLE_CHECKED(JSValue, script_wrapper, 0);
1465 CONVERT_ARG_HANDLE_CHECKED(String, source, 1); 1465 CONVERT_ARG_HANDLE_CHECKED(String, source, 1);
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 return *isolate->factory()->undefined_value(); 1714 return *isolate->factory()->undefined_value();
1715 } 1715 }
1716 1716
1717 1717
1718 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 1718 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
1719 UNIMPLEMENTED(); 1719 UNIMPLEMENTED();
1720 return NULL; 1720 return NULL;
1721 } 1721 }
1722 } // namespace internal 1722 } // namespace internal
1723 } // namespace v8 1723 } // namespace v8
OLDNEW
« src/objects-inl.h ('K') | « src/objects-inl.h ('k') | src/runtime/runtime-object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698