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

Side by Side Diff: src/runtime.cc

Issue 261253005: Clean up debugger flags. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/x64/full-codegen-x64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 <stdlib.h> 5 #include <stdlib.h>
6 #include <limits> 6 #include <limits>
7 7
8 #include "v8.h" 8 #include "v8.h"
9 9
10 #include "accessors.h" 10 #include "accessors.h"
(...skipping 5591 matching lines...) Expand 10 before | Expand all | Expand 10 after
5602 object_array->set(store_index, *value); 5602 object_array->set(store_index, *value);
5603 } 5603 }
5604 return *object; 5604 return *object;
5605 } 5605 }
5606 5606
5607 5607
5608 // Check whether debugger and is about to step into the callback that is passed 5608 // Check whether debugger and is about to step into the callback that is passed
5609 // to a built-in function such as Array.forEach. 5609 // to a built-in function such as Array.forEach.
5610 RUNTIME_FUNCTION(Runtime_DebugCallbackSupportsStepping) { 5610 RUNTIME_FUNCTION(Runtime_DebugCallbackSupportsStepping) {
5611 ASSERT(args.length() == 1); 5611 ASSERT(args.length() == 1);
5612 if (!isolate->IsDebuggerActive() || !isolate->debug()->StepInActive()) { 5612 if (!isolate->debugger()->is_active() || !isolate->debug()->StepInActive()) {
5613 return isolate->heap()->false_value(); 5613 return isolate->heap()->false_value();
5614 } 5614 }
5615 CONVERT_ARG_CHECKED(Object, callback, 0); 5615 CONVERT_ARG_CHECKED(Object, callback, 0);
5616 // We do not step into the callback if it's a builtin or not even a function. 5616 // We do not step into the callback if it's a builtin or not even a function.
5617 return isolate->heap()->ToBoolean( 5617 return isolate->heap()->ToBoolean(
5618 callback->IsJSFunction() && !JSFunction::cast(callback)->IsBuiltin()); 5618 callback->IsJSFunction() && !JSFunction::cast(callback)->IsBuiltin());
5619 } 5619 }
5620 5620
5621 5621
5622 // Set one shot breakpoints for the callback function that is passed to a 5622 // Set one shot breakpoints for the callback function that is passed to a
(...skipping 9600 matching lines...) Expand 10 before | Expand all | Expand 10 after
15223 } 15223 }
15224 return NULL; 15224 return NULL;
15225 } 15225 }
15226 15226
15227 15227
15228 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15228 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15229 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15229 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15230 } 15230 }
15231 15231
15232 } } // namespace v8::internal 15232 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698