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

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

Issue 1773653002: [strong] Remove all remainders of strong mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Oversight Created 4 years, 9 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-internal.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/accessors.h" 7 #include "src/accessors.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/compiler.h" 9 #include "src/compiler.h"
10 #include "src/frames-inl.h" 10 #include "src/frames-inl.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 281
282 RUNTIME_FUNCTION(Runtime_IsFunction) { 282 RUNTIME_FUNCTION(Runtime_IsFunction) {
283 SealHandleScope shs(isolate); 283 SealHandleScope shs(isolate);
284 DCHECK_EQ(1, args.length()); 284 DCHECK_EQ(1, args.length());
285 CONVERT_ARG_CHECKED(Object, object, 0); 285 CONVERT_ARG_CHECKED(Object, object, 0);
286 return isolate->heap()->ToBoolean(object->IsFunction()); 286 return isolate->heap()->ToBoolean(object->IsFunction());
287 } 287 }
288 288
289 289
290 RUNTIME_FUNCTION(Runtime_ThrowStrongModeTooFewArguments) {
291 HandleScope scope(isolate);
292 DCHECK(args.length() == 0);
293 THROW_NEW_ERROR_RETURN_FAILURE(isolate,
294 NewTypeError(MessageTemplate::kStrongArity));
295 }
296
297
298 RUNTIME_FUNCTION(Runtime_FunctionToString) { 290 RUNTIME_FUNCTION(Runtime_FunctionToString) {
299 HandleScope scope(isolate); 291 HandleScope scope(isolate);
300 DCHECK_EQ(1, args.length()); 292 DCHECK_EQ(1, args.length());
301 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, function, 0); 293 CONVERT_ARG_HANDLE_CHECKED(JSReceiver, function, 0);
302 return function->IsJSBoundFunction() 294 return function->IsJSBoundFunction()
303 ? *JSBoundFunction::ToString( 295 ? *JSBoundFunction::ToString(
304 Handle<JSBoundFunction>::cast(function)) 296 Handle<JSBoundFunction>::cast(function))
305 : *JSFunction::ToString(Handle<JSFunction>::cast(function)); 297 : *JSFunction::ToString(Handle<JSFunction>::cast(function));
306 } 298 }
307 299
308 } // namespace internal 300 } // namespace internal
309 } // namespace v8 301 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698