OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 3297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3308 | 3308 |
3309 __ JumpIfSmi(rax, if_false); | 3309 __ JumpIfSmi(rax, if_false); |
3310 __ CmpObjectType(rax, FIRST_SPEC_OBJECT_TYPE, rbx); | 3310 __ CmpObjectType(rax, FIRST_SPEC_OBJECT_TYPE, rbx); |
3311 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3311 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
3312 Split(above_equal, if_true, if_false, fall_through); | 3312 Split(above_equal, if_true, if_false, fall_through); |
3313 | 3313 |
3314 context()->Plug(if_true, if_false); | 3314 context()->Plug(if_true, if_false); |
3315 } | 3315 } |
3316 | 3316 |
3317 | 3317 |
3318 void FullCodeGenerator::EmitIsSimdObject(CallRuntime* expr) { | 3318 void FullCodeGenerator::EmitIsSimdValue(CallRuntime* expr) { |
3319 ZoneList<Expression*>* args = expr->arguments(); | 3319 ZoneList<Expression*>* args = expr->arguments(); |
3320 DCHECK(args->length() == 1); | 3320 DCHECK(args->length() == 1); |
3321 | 3321 |
3322 VisitForAccumulatorValue(args->at(0)); | 3322 VisitForAccumulatorValue(args->at(0)); |
3323 | 3323 |
3324 Label materialize_true, materialize_false; | 3324 Label materialize_true, materialize_false; |
3325 Label* if_true = NULL; | 3325 Label* if_true = NULL; |
3326 Label* if_false = NULL; | 3326 Label* if_false = NULL; |
3327 Label* fall_through = NULL; | 3327 Label* fall_through = NULL; |
3328 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, | 3328 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, |
(...skipping 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5355 Assembler::target_address_at(call_target_address, | 5355 Assembler::target_address_at(call_target_address, |
5356 unoptimized_code)); | 5356 unoptimized_code)); |
5357 return OSR_AFTER_STACK_CHECK; | 5357 return OSR_AFTER_STACK_CHECK; |
5358 } | 5358 } |
5359 | 5359 |
5360 | 5360 |
5361 } // namespace internal | 5361 } // namespace internal |
5362 } // namespace v8 | 5362 } // namespace v8 |
5363 | 5363 |
5364 #endif // V8_TARGET_ARCH_X64 | 5364 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |