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

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

Issue 2117273002: Revert of [intrinsic] Drop the %_ValueOf intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/runtime/runtime.h ('k') | src/runtime/runtime-numbers.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/ast/prettyprinter.h" 8 #include "src/ast/prettyprinter.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/conversions.h" 10 #include "src/conversions.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) { 228 RUNTIME_FUNCTION(Runtime_ThrowIteratorResultNotAnObject) {
229 HandleScope scope(isolate); 229 HandleScope scope(isolate);
230 DCHECK(args.length() == 1); 230 DCHECK(args.length() == 1);
231 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0); 231 CONVERT_ARG_HANDLE_CHECKED(Object, value, 0);
232 THROW_NEW_ERROR_RETURN_FAILURE( 232 THROW_NEW_ERROR_RETURN_FAILURE(
233 isolate, 233 isolate,
234 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value)); 234 NewTypeError(MessageTemplate::kIteratorResultNotAnObject, value));
235 } 235 }
236 236
237 RUNTIME_FUNCTION(Runtime_ThrowNotGeneric) {
238 HandleScope scope(isolate);
239 DCHECK_EQ(1, args.length());
240 CONVERT_ARG_HANDLE_CHECKED(Object, arg0, 0);
241 THROW_NEW_ERROR_RETURN_FAILURE(
242 isolate, NewTypeError(MessageTemplate::kNotGeneric, arg0));
243 }
244
245 RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) { 237 RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) {
246 HandleScope scope(isolate); 238 HandleScope scope(isolate);
247 DCHECK_EQ(0, args.length()); 239 DCHECK_EQ(0, args.length());
248 THROW_NEW_ERROR_RETURN_FAILURE( 240 THROW_NEW_ERROR_RETURN_FAILURE(
249 isolate, NewTypeError(MessageTemplate::kGeneratorRunning)); 241 isolate, NewTypeError(MessageTemplate::kGeneratorRunning));
250 } 242 }
251 243
252 RUNTIME_FUNCTION(Runtime_ThrowApplyNonFunction) { 244 RUNTIME_FUNCTION(Runtime_ThrowApplyNonFunction) {
253 HandleScope scope(isolate); 245 HandleScope scope(isolate);
254 DCHECK_EQ(1, args.length()); 246 DCHECK_EQ(1, args.length());
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 HandleScope scope(isolate); 620 HandleScope scope(isolate);
629 DCHECK_EQ(1, args.length()); 621 DCHECK_EQ(1, args.length());
630 CONVERT_ARG_CHECKED(Object, object, 0); 622 CONVERT_ARG_CHECKED(Object, object, 0);
631 bool is_wasm_object = 623 bool is_wasm_object =
632 object->IsJSObject() && wasm::IsWasmObject(JSObject::cast(object)); 624 object->IsJSObject() && wasm::IsWasmObject(JSObject::cast(object));
633 return *isolate->factory()->ToBoolean(is_wasm_object); 625 return *isolate->factory()->ToBoolean(is_wasm_object);
634 } 626 }
635 627
636 } // namespace internal 628 } // namespace internal
637 } // namespace v8 629 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-numbers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698