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

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

Issue 1306303003: [es6] Implement spec compliant ToPrimitive in the runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address Michis comments. Created 5 years, 3 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/date.js ('k') | src/execution.h » ('j') | src/objects.cc » ('J')
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 "src/debug/debug.h" 5 #include "src/debug/debug.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after
2141 Handle<Object> is_running_args[] = { answer }; 2141 Handle<Object> is_running_args[] = { answer };
2142 maybe_result = Execution::Call( 2142 maybe_result = Execution::Call(
2143 isolate_, is_running, cmd_processor, 1, is_running_args); 2143 isolate_, is_running, cmd_processor, 1, is_running_args);
2144 Handle<Object> result; 2144 Handle<Object> result;
2145 if (!maybe_result.ToHandle(&result)) break; 2145 if (!maybe_result.ToHandle(&result)) break;
2146 running = result->IsTrue(); 2146 running = result->IsTrue();
2147 } else { 2147 } else {
2148 Handle<Object> exception; 2148 Handle<Object> exception;
2149 if (!maybe_exception.ToHandle(&exception)) break; 2149 if (!maybe_exception.ToHandle(&exception)) break;
2150 Handle<Object> result; 2150 Handle<Object> result;
2151 if (!Execution::ToString(isolate_, exception).ToHandle(&result)) break; 2151 if (!Object::ToString(isolate_, exception).ToHandle(&result)) break;
2152 answer = Handle<String>::cast(result); 2152 answer = Handle<String>::cast(result);
2153 } 2153 }
2154 2154
2155 // Return the result. 2155 // Return the result.
2156 MessageImpl message = MessageImpl::NewResponse( 2156 MessageImpl message = MessageImpl::NewResponse(
2157 event, running, exec_state, event_data, answer, command.client_data()); 2157 event, running, exec_state, event_data, answer, command.client_data());
2158 InvokeMessageHandler(message); 2158 InvokeMessageHandler(message);
2159 command.Dispose(); 2159 command.Dispose();
2160 2160
2161 // Return from debug event processing if either the VM is put into the 2161 // Return from debug event processing if either the VM is put into the
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
2613 } 2613 }
2614 2614
2615 2615
2616 void LockingCommandMessageQueue::Clear() { 2616 void LockingCommandMessageQueue::Clear() {
2617 base::LockGuard<base::Mutex> lock_guard(&mutex_); 2617 base::LockGuard<base::Mutex> lock_guard(&mutex_);
2618 queue_.Clear(); 2618 queue_.Clear();
2619 } 2619 }
2620 2620
2621 } // namespace internal 2621 } // namespace internal
2622 } // namespace v8 2622 } // namespace v8
OLDNEW
« no previous file with comments | « src/date.js ('k') | src/execution.h » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698