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

Side by Side Diff: src/runtime.cc

Issue 292713002: Revert "Simplify debugger state." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/isolate.cc ('k') | test/cctest/test-debug.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 11026 matching lines...) Expand 10 before | Expand all | Expand 10 after
11037 RUNTIME_ASSERT(obj->HasIndexedInterceptor()); 11037 RUNTIME_ASSERT(obj->HasIndexedInterceptor());
11038 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]); 11038 CONVERT_NUMBER_CHECKED(uint32_t, index, Uint32, args[1]);
11039 Handle<Object> result; 11039 Handle<Object> result;
11040 ASSIGN_RETURN_FAILURE_ON_EXCEPTION( 11040 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
11041 isolate, result, JSObject::GetElementWithInterceptor(obj, obj, index)); 11041 isolate, result, JSObject::GetElementWithInterceptor(obj, obj, index));
11042 return *result; 11042 return *result;
11043 } 11043 }
11044 11044
11045 11045
11046 static bool CheckExecutionState(Isolate* isolate, int break_id) { 11046 static bool CheckExecutionState(Isolate* isolate, int break_id) {
11047 return !isolate->debug()->debug_context().is_null() && 11047 return (isolate->debug()->break_id() != 0 &&
11048 isolate->debug()->break_id() != 0 && 11048 break_id == isolate->debug()->break_id());
11049 isolate->debug()->break_id() == break_id;
11050 } 11049 }
11051 11050
11052 11051
11053 RUNTIME_FUNCTION(Runtime_CheckExecutionState) { 11052 RUNTIME_FUNCTION(Runtime_CheckExecutionState) {
11054 SealHandleScope shs(isolate); 11053 SealHandleScope shs(isolate);
11055 ASSERT(args.length() == 1); 11054 ASSERT(args.length() == 1);
11056 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]); 11055 CONVERT_NUMBER_CHECKED(int, break_id, Int32, args[0]);
11057 RUNTIME_ASSERT(CheckExecutionState(isolate, break_id)); 11056 RUNTIME_ASSERT(CheckExecutionState(isolate, break_id));
11058 return isolate->heap()->true_value(); 11057 return isolate->heap()->true_value();
11059 } 11058 }
(...skipping 4171 matching lines...) Expand 10 before | Expand all | Expand 10 after
15231 } 15230 }
15232 return NULL; 15231 return NULL;
15233 } 15232 }
15234 15233
15235 15234
15236 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) { 15235 const Runtime::Function* Runtime::FunctionForId(Runtime::FunctionId id) {
15237 return &(kIntrinsicFunctions[static_cast<int>(id)]); 15236 return &(kIntrinsicFunctions[static_cast<int>(id)]);
15238 } 15237 }
15239 15238
15240 } } // namespace v8::internal 15239 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | test/cctest/test-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698