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 4174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4185 __ movp(rax, FieldOperand(cache, | 4185 __ movp(rax, FieldOperand(cache, |
4186 index.reg, | 4186 index.reg, |
4187 index.scale, | 4187 index.scale, |
4188 FixedArray::kHeaderSize + kPointerSize)); | 4188 FixedArray::kHeaderSize + kPointerSize)); |
4189 __ jmp(&done, Label::kNear); | 4189 __ jmp(&done, Label::kNear); |
4190 | 4190 |
4191 __ bind(¬_found); | 4191 __ bind(¬_found); |
4192 // Call runtime to perform the lookup. | 4192 // Call runtime to perform the lookup. |
4193 __ Push(cache); | 4193 __ Push(cache); |
4194 __ Push(key); | 4194 __ Push(key); |
4195 __ CallRuntime(Runtime::kGetFromCache, 2); | 4195 __ CallRuntime(Runtime::kGetFromCacheRT, 2); |
4196 | 4196 |
4197 __ bind(&done); | 4197 __ bind(&done); |
4198 context()->Plug(rax); | 4198 context()->Plug(rax); |
4199 } | 4199 } |
4200 | 4200 |
4201 | 4201 |
4202 void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { | 4202 void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { |
4203 ZoneList<Expression*>* args = expr->arguments(); | 4203 ZoneList<Expression*>* args = expr->arguments(); |
4204 DCHECK(args->length() == 1); | 4204 DCHECK(args->length() == 1); |
4205 | 4205 |
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5386 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 5386 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
5387 Assembler::target_address_at(call_target_address, | 5387 Assembler::target_address_at(call_target_address, |
5388 unoptimized_code)); | 5388 unoptimized_code)); |
5389 return OSR_AFTER_STACK_CHECK; | 5389 return OSR_AFTER_STACK_CHECK; |
5390 } | 5390 } |
5391 | 5391 |
5392 | 5392 |
5393 } } // namespace v8::internal | 5393 } } // namespace v8::internal |
5394 | 5394 |
5395 #endif // V8_TARGET_ARCH_X64 | 5395 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |