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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 4157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4168 __ cmp(key, FixedArrayElementOperand(cache, tmp)); | 4168 __ cmp(key, FixedArrayElementOperand(cache, tmp)); |
4169 __ j(not_equal, ¬_found); | 4169 __ j(not_equal, ¬_found); |
4170 | 4170 |
4171 __ mov(eax, FixedArrayElementOperand(cache, tmp, 1)); | 4171 __ mov(eax, FixedArrayElementOperand(cache, tmp, 1)); |
4172 __ jmp(&done); | 4172 __ jmp(&done); |
4173 | 4173 |
4174 __ bind(¬_found); | 4174 __ bind(¬_found); |
4175 // Call runtime to perform the lookup. | 4175 // Call runtime to perform the lookup. |
4176 __ push(cache); | 4176 __ push(cache); |
4177 __ push(key); | 4177 __ push(key); |
4178 __ CallRuntime(Runtime::kGetFromCache, 2); | 4178 __ CallRuntime(Runtime::kGetFromCacheRT, 2); |
4179 | 4179 |
4180 __ bind(&done); | 4180 __ bind(&done); |
4181 context()->Plug(eax); | 4181 context()->Plug(eax); |
4182 } | 4182 } |
4183 | 4183 |
4184 | 4184 |
4185 void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { | 4185 void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { |
4186 ZoneList<Expression*>* args = expr->arguments(); | 4186 ZoneList<Expression*>* args = expr->arguments(); |
4187 DCHECK(args->length() == 1); | 4187 DCHECK(args->length() == 1); |
4188 | 4188 |
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5350 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5350 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
5351 Assembler::target_address_at(call_target_address, | 5351 Assembler::target_address_at(call_target_address, |
5352 unoptimized_code)); | 5352 unoptimized_code)); |
5353 return OSR_AFTER_STACK_CHECK; | 5353 return OSR_AFTER_STACK_CHECK; |
5354 } | 5354 } |
5355 | 5355 |
5356 | 5356 |
5357 } } // namespace v8::internal | 5357 } } // namespace v8::internal |
5358 | 5358 |
5359 #endif // V8_TARGET_ARCH_X87 | 5359 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |