OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2179 const Register scratch = scratch1(); | 2179 const Register scratch = scratch1(); |
2180 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); | 2180 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
2181 __ Branch(instr->TrueLabel(chunk_), eq, scratch, Operand(SYMBOL_TYPE)); | 2181 __ Branch(instr->TrueLabel(chunk_), eq, scratch, Operand(SYMBOL_TYPE)); |
2182 } | 2182 } |
2183 | 2183 |
2184 if (expected.Contains(ToBooleanStub::SIMD_VALUE)) { | 2184 if (expected.Contains(ToBooleanStub::SIMD_VALUE)) { |
2185 // SIMD value -> true. | 2185 // SIMD value -> true. |
2186 Label not_simd; | 2186 Label not_simd; |
2187 const Register scratch = scratch1(); | 2187 const Register scratch = scratch1(); |
2188 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); | 2188 __ lbu(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset)); |
2189 __ Branch(¬_simd, lt, at, Operand(FIRST_SIMD_VALUE_TYPE)); | 2189 __ Branch(¬_simd, lt, scratch, Operand(FIRST_SIMD_VALUE_TYPE)); |
2190 __ Branch(instr->TrueLabel(chunk_), le, scratch, | 2190 __ Branch(instr->TrueLabel(chunk_), le, scratch, |
2191 Operand(LAST_SIMD_VALUE_TYPE)); | 2191 Operand(LAST_SIMD_VALUE_TYPE)); |
2192 __ bind(¬_simd); | 2192 __ bind(¬_simd); |
2193 } | 2193 } |
2194 | 2194 |
2195 if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) { | 2195 if (expected.Contains(ToBooleanStub::HEAP_NUMBER)) { |
2196 // heap number -> false iff +0, -0, or NaN. | 2196 // heap number -> false iff +0, -0, or NaN. |
2197 DoubleRegister dbl_scratch = double_scratch0(); | 2197 DoubleRegister dbl_scratch = double_scratch0(); |
2198 Label not_heap_number; | 2198 Label not_heap_number; |
2199 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex); | 2199 __ LoadRoot(at, Heap::kHeapNumberMapRootIndex); |
(...skipping 3904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6104 __ Push(at, ToRegister(instr->function())); | 6104 __ Push(at, ToRegister(instr->function())); |
6105 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6105 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6106 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6106 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6107 } | 6107 } |
6108 | 6108 |
6109 | 6109 |
6110 #undef __ | 6110 #undef __ |
6111 | 6111 |
6112 } // namespace internal | 6112 } // namespace internal |
6113 } // namespace v8 | 6113 } // namespace v8 |
OLD | NEW |