OLD | NEW |
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/v8.h" | 5 #include "src/v8.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/debug.h" | 9 #include "src/debug.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 RUNTIME_FUNCTION(Runtime_Likely) { | 335 RUNTIME_FUNCTION(Runtime_Likely) { |
336 DCHECK(args.length() == 1); | 336 DCHECK(args.length() == 1); |
337 return args[0]; | 337 return args[0]; |
338 } | 338 } |
339 | 339 |
340 | 340 |
341 RUNTIME_FUNCTION(Runtime_Unlikely) { | 341 RUNTIME_FUNCTION(Runtime_Unlikely) { |
342 DCHECK(args.length() == 1); | 342 DCHECK(args.length() == 1); |
343 return args[0]; | 343 return args[0]; |
344 } | 344 } |
| 345 |
| 346 |
| 347 RUNTIME_FUNCTION(Runtime_HarmonyToString) { |
| 348 // TODO(caitp): Delete this runtime method when removing --harmony-tostring |
| 349 return isolate->heap()->ToBoolean(FLAG_harmony_tostring); |
| 350 } |
345 } | 351 } |
346 } // namespace v8::internal | 352 } // namespace v8::internal |
OLD | NEW |