| 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 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
| 9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
| 10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
| (...skipping 2269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2280 const Register scratch = scratch1(); | 2280 const Register scratch = scratch1(); |
| 2281 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); | 2281 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
| 2282 __ Branch(instr->TrueLabel(chunk_), eq, scratch, Operand(SYMBOL_TYPE)); | 2282 __ Branch(instr->TrueLabel(chunk_), eq, scratch, Operand(SYMBOL_TYPE)); |
| 2283 } | 2283 } |
| 2284 | 2284 |
| 2285 if (expected.Contains(ToBooleanStub::SIMD_VALUE)) { | 2285 if (expected.Contains(ToBooleanStub::SIMD_VALUE)) { |
| 2286 // SIMD value -> true. | 2286 // SIMD value -> true. |
| 2287 Label not_simd; | 2287 Label not_simd; |
| 2288 const Register scratch = scratch1(); | 2288 const Register scratch = scratch1(); |
| 2289 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); | 2289 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
| 2290 __ Branch(¬_simd, lt, at, Operand(FIRST_SIMD_VALUE_TYPE)); | 2290 __ Branch(¬_simd, lt, scratch, Operand(FIRST_SIMD_VALUE_TYPE)); |
| 2291 __ Branch(instr->TrueLabel(chunk_), le, scratch, | 2291 __ Branch(instr->TrueLabel(chunk_), le, scratch, |
| 2292 Operand(LAST_SIMD_VALUE_TYPE)); | 2292 Operand(LAST_SIMD_VALUE_TYPE)); |
| 2293 __ bind(¬_simd); | 2293 __ bind(¬_simd); |
| 2294 } | 2294 } |
| 2295 | 2295 |
| 2296 if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) { | 2296 if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) { |
| 2297 // heap number -> false iff +0, -0, or NaN. | 2297 // heap number -> false iff +0, -0, or NaN. |
| 2298 DoubleRegister dbl_scratch = double_scratch0(); | 2298 DoubleRegister dbl_scratch = double_scratch0(); |
| 2299 Label not_heap_number; | 2299 Label not_heap_number; |
| 2300 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex); | 2300 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex); |
| (...skipping 3985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6286 __ Push(at, ToRegister(instr->function())); | 6286 __ Push(at, ToRegister(instr->function())); |
| 6287 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6287 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 6288 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6288 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6289 } | 6289 } |
| 6290 | 6290 |
| 6291 | 6291 |
| 6292 #undef __ | 6292 #undef __ |
| 6293 | 6293 |
| 6294 } // namespace internal | 6294 } // namespace internal |
| 6295 } // namespace v8 | 6295 } // namespace v8 |
| OLD | NEW |