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

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

Issue 2126453002: [intrinsic] Drop the %_ValueOf intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix noi18n build (narf) 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
237 RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) { 245 RUNTIME_FUNCTION(Runtime_ThrowGeneratorRunning) {
238 HandleScope scope(isolate); 246 HandleScope scope(isolate);
239 DCHECK_EQ(0, args.length()); 247 DCHECK_EQ(0, args.length());
240 THROW_NEW_ERROR_RETURN_FAILURE( 248 THROW_NEW_ERROR_RETURN_FAILURE(
241 isolate, NewTypeError(MessageTemplate::kGeneratorRunning)); 249 isolate, NewTypeError(MessageTemplate::kGeneratorRunning));
242 } 250 }
243 251
244 RUNTIME_FUNCTION(Runtime_ThrowApplyNonFunction) { 252 RUNTIME_FUNCTION(Runtime_ThrowApplyNonFunction) {
245 HandleScope scope(isolate); 253 HandleScope scope(isolate);
246 DCHECK_EQ(1, args.length()); 254 DCHECK_EQ(1, args.length());
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 HandleScope scope(isolate); 628 HandleScope scope(isolate);
621 DCHECK_EQ(1, args.length()); 629 DCHECK_EQ(1, args.length());
622 CONVERT_ARG_CHECKED(Object, object, 0); 630 CONVERT_ARG_CHECKED(Object, object, 0);
623 bool is_wasm_object = 631 bool is_wasm_object =
624 object->IsJSObject() && wasm::IsWasmObject(JSObject::cast(object)); 632 object->IsJSObject() && wasm::IsWasmObject(JSObject::cast(object));
625 return *isolate->factory()->ToBoolean(is_wasm_object); 633 return *isolate->factory()->ToBoolean(is_wasm_object);
626 } 634 }
627 635
628 } // namespace internal 636 } // namespace internal
629 } // namespace v8 637 } // 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