| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 3398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3409 | 3409 |
| 3410 __ JumpIfSmi(v0, if_false); | 3410 __ JumpIfSmi(v0, if_false); |
| 3411 __ GetObjectType(v0, a1, a1); | 3411 __ GetObjectType(v0, a1, a1); |
| 3412 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3412 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 3413 Split(eq, a1, Operand(JS_REGEXP_TYPE), if_true, if_false, fall_through); | 3413 Split(eq, a1, Operand(JS_REGEXP_TYPE), if_true, if_false, fall_through); |
| 3414 | 3414 |
| 3415 context()->Plug(if_true, if_false); | 3415 context()->Plug(if_true, if_false); |
| 3416 } | 3416 } |
| 3417 | 3417 |
| 3418 | 3418 |
| 3419 void FullCodeGenerator::EmitIsJSProxy(CallRuntime* expr) { |
| 3420 ZoneList<Expression*>* args = expr->arguments(); |
| 3421 DCHECK(args->length() == 1); |
| 3422 |
| 3423 VisitForAccumulatorValue(args->at(0)); |
| 3424 |
| 3425 Label materialize_true, materialize_false; |
| 3426 Label* if_true = NULL; |
| 3427 Label* if_false = NULL; |
| 3428 Label* fall_through = NULL; |
| 3429 context()->PrepareTest(&materialize_true, &materialize_false, &if_true, |
| 3430 &if_false, &fall_through); |
| 3431 |
| 3432 __ JumpIfSmi(v0, if_false); |
| 3433 Register map = a1; |
| 3434 Register type_reg = a2; |
| 3435 __ GetObjectType(v0, map, type_reg); |
| 3436 __ Subu(type_reg, type_reg, Operand(FIRST_JS_PROXY_TYPE)); |
| 3437 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 3438 Split(ls, type_reg, Operand(LAST_JS_PROXY_TYPE - FIRST_JS_PROXY_TYPE), |
| 3439 if_true, if_false, fall_through); |
| 3440 |
| 3441 context()->Plug(if_true, if_false); |
| 3442 } |
| 3443 |
| 3444 |
| 3419 void FullCodeGenerator::EmitIsConstructCall(CallRuntime* expr) { | 3445 void FullCodeGenerator::EmitIsConstructCall(CallRuntime* expr) { |
| 3420 DCHECK(expr->arguments()->length() == 0); | 3446 DCHECK(expr->arguments()->length() == 0); |
| 3421 | 3447 |
| 3422 Label materialize_true, materialize_false; | 3448 Label materialize_true, materialize_false; |
| 3423 Label* if_true = NULL; | 3449 Label* if_true = NULL; |
| 3424 Label* if_false = NULL; | 3450 Label* if_false = NULL; |
| 3425 Label* fall_through = NULL; | 3451 Label* fall_through = NULL; |
| 3426 context()->PrepareTest(&materialize_true, &materialize_false, | 3452 context()->PrepareTest(&materialize_true, &materialize_false, |
| 3427 &if_true, &if_false, &fall_through); | 3453 &if_true, &if_false, &fall_through); |
| 3428 | 3454 |
| (...skipping 1740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5169 Assembler::target_address_at(pc_immediate_load_address)) == | 5195 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5170 reinterpret_cast<uint64_t>( | 5196 reinterpret_cast<uint64_t>( |
| 5171 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5197 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5172 return OSR_AFTER_STACK_CHECK; | 5198 return OSR_AFTER_STACK_CHECK; |
| 5173 } | 5199 } |
| 5174 | 5200 |
| 5175 | 5201 |
| 5176 } } // namespace v8::internal | 5202 } } // namespace v8::internal |
| 5177 | 5203 |
| 5178 #endif // V8_TARGET_ARCH_MIPS64 | 5204 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |