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

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

Issue 1418663011: [runtime] Remove the unused weird %Likely and %Unlikely intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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') | test/unittests/compiler/js-intrinsic-lowering-unittest.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/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/conversions.h" 9 #include "src/conversions.h"
10 #include "src/debug/debug.h" 10 #include "src/debug/debug.h"
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 DCHECK(args.length() == 1); 364 DCHECK(args.length() == 1);
365 CONVERT_ARG_CHECKED(String, name, 0); 365 CONVERT_ARG_CHECKED(String, name, 0);
366 366
367 if (FLAG_native_code_counters) { 367 if (FLAG_native_code_counters) {
368 StatsCounter(isolate, name->ToCString().get()).Increment(); 368 StatsCounter(isolate, name->ToCString().get()).Increment();
369 } 369 }
370 return isolate->heap()->undefined_value(); 370 return isolate->heap()->undefined_value();
371 } 371 }
372 372
373 373
374 RUNTIME_FUNCTION(Runtime_Likely) {
375 DCHECK(args.length() == 1);
376 return args[0];
377 }
378
379
380 RUNTIME_FUNCTION(Runtime_Unlikely) {
381 DCHECK(args.length() == 1);
382 return args[0];
383 }
384
385
386 RUNTIME_FUNCTION(Runtime_HarmonyToString) { 374 RUNTIME_FUNCTION(Runtime_HarmonyToString) {
387 // TODO(caitp): Delete this runtime method when removing --harmony-tostring 375 // TODO(caitp): Delete this runtime method when removing --harmony-tostring
388 return isolate->heap()->ToBoolean(FLAG_harmony_tostring); 376 return isolate->heap()->ToBoolean(FLAG_harmony_tostring);
389 } 377 }
390 378
391 379
392 RUNTIME_FUNCTION(Runtime_GetTypeFeedbackVector) { 380 RUNTIME_FUNCTION(Runtime_GetTypeFeedbackVector) {
393 SealHandleScope shs(isolate); 381 SealHandleScope shs(isolate);
394 DCHECK(args.length() == 1); 382 DCHECK(args.length() == 1);
395 CONVERT_ARG_CHECKED(JSFunction, function, 0); 383 CONVERT_ARG_CHECKED(JSFunction, function, 0);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 HandleScope scope(isolate); 429 HandleScope scope(isolate);
442 DCHECK_EQ(1, args.length()); 430 DCHECK_EQ(1, args.length());
443 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0); 431 CONVERT_ARG_HANDLE_CHECKED(Object, object, 0);
444 Handle<String> callsite = RenderCallSite(isolate, object); 432 Handle<String> callsite = RenderCallSite(isolate, object);
445 THROW_NEW_ERROR_RETURN_FAILURE( 433 THROW_NEW_ERROR_RETURN_FAILURE(
446 isolate, NewTypeError(MessageTemplate::kCalledNonCallable, callsite)); 434 isolate, NewTypeError(MessageTemplate::kCalledNonCallable, callsite));
447 } 435 }
448 436
449 } // namespace internal 437 } // namespace internal
450 } // namespace v8 438 } // namespace v8
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | test/unittests/compiler/js-intrinsic-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698