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 3375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3386 | 3386 |
3387 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { | 3387 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { |
3388 DCHECK(ToRegister(instr->context()).is(cp)); | 3388 DCHECK(ToRegister(instr->context()).is(cp)); |
3389 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); | 3389 DCHECK(ToRegister(instr->object()).is(LoadDescriptor::ReceiverRegister())); |
3390 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); | 3390 DCHECK(ToRegister(instr->key()).is(LoadDescriptor::NameRegister())); |
3391 | 3391 |
3392 if (FLAG_vector_ics) { | 3392 if (FLAG_vector_ics) { |
3393 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); | 3393 EmitVectorLoadICRegisters<LLoadKeyedGeneric>(instr); |
3394 } | 3394 } |
3395 | 3395 |
3396 Handle<Code> ic = CodeFactory::KeyedLoadICInOptimizedCode(isolate()).code(); | 3396 Handle<Code> ic = |
| 3397 CodeFactory::KeyedLoadICInOptimizedCode( |
| 3398 isolate(), instr->hydrogen()->initialization_state()).code(); |
3397 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3399 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
3398 } | 3400 } |
3399 | 3401 |
3400 | 3402 |
3401 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { | 3403 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { |
3402 Register scratch = scratch0(); | 3404 Register scratch = scratch0(); |
3403 Register temp = scratch1(); | 3405 Register temp = scratch1(); |
3404 Register result = ToRegister(instr->result()); | 3406 Register result = ToRegister(instr->result()); |
3405 | 3407 |
3406 if (instr->hydrogen()->from_inlined()) { | 3408 if (instr->hydrogen()->from_inlined()) { |
(...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4511 } | 4513 } |
4512 } | 4514 } |
4513 | 4515 |
4514 | 4516 |
4515 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { | 4517 void LCodeGen::DoStoreKeyedGeneric(LStoreKeyedGeneric* instr) { |
4516 DCHECK(ToRegister(instr->context()).is(cp)); | 4518 DCHECK(ToRegister(instr->context()).is(cp)); |
4517 DCHECK(ToRegister(instr->object()).is(StoreDescriptor::ReceiverRegister())); | 4519 DCHECK(ToRegister(instr->object()).is(StoreDescriptor::ReceiverRegister())); |
4518 DCHECK(ToRegister(instr->key()).is(StoreDescriptor::NameRegister())); | 4520 DCHECK(ToRegister(instr->key()).is(StoreDescriptor::NameRegister())); |
4519 DCHECK(ToRegister(instr->value()).is(StoreDescriptor::ValueRegister())); | 4521 DCHECK(ToRegister(instr->value()).is(StoreDescriptor::ValueRegister())); |
4520 | 4522 |
4521 Handle<Code> ic = | 4523 Handle<Code> ic = CodeFactory::KeyedStoreICInOptimizedCode( |
4522 CodeFactory::KeyedStoreIC(isolate(), instr->language_mode()).code(); | 4524 isolate(), instr->language_mode(), |
| 4525 instr->hydrogen()->initialization_state()).code(); |
4523 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 4526 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
4524 } | 4527 } |
4525 | 4528 |
4526 | 4529 |
4527 void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) { | 4530 void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) { |
4528 Register object_reg = ToRegister(instr->object()); | 4531 Register object_reg = ToRegister(instr->object()); |
4529 Register scratch = scratch0(); | 4532 Register scratch = scratch0(); |
4530 | 4533 |
4531 Handle<Map> from_map = instr->original_map(); | 4534 Handle<Map> from_map = instr->original_map(); |
4532 Handle<Map> to_map = instr->transitioned_map(); | 4535 Handle<Map> to_map = instr->transitioned_map(); |
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6033 __ li(at, scope_info); | 6036 __ li(at, scope_info); |
6034 __ Push(at, ToRegister(instr->function())); | 6037 __ Push(at, ToRegister(instr->function())); |
6035 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6038 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6036 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6039 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6037 } | 6040 } |
6038 | 6041 |
6039 | 6042 |
6040 #undef __ | 6043 #undef __ |
6041 | 6044 |
6042 } } // namespace v8::internal | 6045 } } // namespace v8::internal |
OLD | NEW |