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

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: Rebase. 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
« no previous file with comments | « src/objects-inl.h ('k') | src/runtime/runtime-object.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.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 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1442 return *isolate->factory()->NewJSArrayWithElements(result); 1442 return *isolate->factory()->NewJSArrayWithElements(result);
1443 } 1443 }
1444 1444
1445 1445
1446 // Find the effective prototype object as returned by __proto__. 1446 // Find the effective prototype object as returned by __proto__.
1447 // args[0]: the object to find the prototype for. 1447 // args[0]: the object to find the prototype for.
1448 RUNTIME_FUNCTION(Runtime_DebugGetPrototype) { 1448 RUNTIME_FUNCTION(Runtime_DebugGetPrototype) {
1449 HandleScope shs(isolate); 1449 HandleScope shs(isolate);
1450 DCHECK(args.length() == 1); 1450 DCHECK(args.length() == 1);
1451 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0); 1451 CONVERT_ARG_HANDLE_CHECKED(JSObject, obj, 0);
1452 return *Object::GetPrototypeSkipHiddenPrototypes(isolate, obj); 1452 return *Object::GetPrototype(isolate, obj);
1453 } 1453 }
1454 1454
1455 1455
1456 // Patches script source (should be called upon BeforeCompile event). 1456 // Patches script source (should be called upon BeforeCompile event).
1457 RUNTIME_FUNCTION(Runtime_DebugSetScriptSource) { 1457 RUNTIME_FUNCTION(Runtime_DebugSetScriptSource) {
1458 HandleScope scope(isolate); 1458 HandleScope scope(isolate);
1459 DCHECK(args.length() == 2); 1459 DCHECK(args.length() == 2);
1460 1460
1461 CONVERT_ARG_HANDLE_CHECKED(JSValue, script_wrapper, 0); 1461 CONVERT_ARG_HANDLE_CHECKED(JSValue, script_wrapper, 0);
1462 CONVERT_ARG_HANDLE_CHECKED(String, source, 1); 1462 CONVERT_ARG_HANDLE_CHECKED(String, source, 1);
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1735 return *isolate->factory()->undefined_value(); 1735 return *isolate->factory()->undefined_value();
1736 } 1736 }
1737 1737
1738 1738
1739 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) { 1739 RUNTIME_FUNCTION(Runtime_DebugBreakInOptimizedCode) {
1740 UNIMPLEMENTED(); 1740 UNIMPLEMENTED();
1741 return NULL; 1741 return NULL;
1742 } 1742 }
1743 } // namespace internal 1743 } // namespace internal
1744 } // namespace v8 1744 } // namespace v8
OLDNEW
« no previous file with comments | « 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