OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
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 4795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4806 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) | 4806 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) |
4807 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() | 4807 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() |
4808 : isolate()->builtins()->KeyedStoreIC_Initialize(); | 4808 : isolate()->builtins()->KeyedStoreIC_Initialize(); |
4809 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 4809 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
4810 } | 4810 } |
4811 | 4811 |
4812 | 4812 |
4813 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { | 4813 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { |
4814 Register object = ToRegister(instr->object()); | 4814 Register object = ToRegister(instr->object()); |
4815 Register temp = ToRegister(instr->temp()); | 4815 Register temp = ToRegister(instr->temp()); |
4816 __ TestJSArrayForAllocationMemento(object, temp); | 4816 Label no_memento_found; |
| 4817 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found); |
4817 DeoptimizeIf(equal, instr->environment()); | 4818 DeoptimizeIf(equal, instr->environment()); |
| 4819 __ bind(&no_memento_found); |
4818 } | 4820 } |
4819 | 4821 |
4820 | 4822 |
4821 void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) { | 4823 void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) { |
4822 Register object_reg = ToRegister(instr->object()); | 4824 Register object_reg = ToRegister(instr->object()); |
4823 | 4825 |
4824 Handle<Map> from_map = instr->original_map(); | 4826 Handle<Map> from_map = instr->original_map(); |
4825 Handle<Map> to_map = instr->transitioned_map(); | 4827 Handle<Map> to_map = instr->transitioned_map(); |
4826 ElementsKind from_kind = instr->from_kind(); | 4828 ElementsKind from_kind = instr->from_kind(); |
4827 ElementsKind to_kind = instr->to_kind(); | 4829 ElementsKind to_kind = instr->to_kind(); |
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6394 FixedArray::kHeaderSize - kPointerSize)); | 6396 FixedArray::kHeaderSize - kPointerSize)); |
6395 __ bind(&done); | 6397 __ bind(&done); |
6396 } | 6398 } |
6397 | 6399 |
6398 | 6400 |
6399 #undef __ | 6401 #undef __ |
6400 | 6402 |
6401 } } // namespace v8::internal | 6403 } } // namespace v8::internal |
6402 | 6404 |
6403 #endif // V8_TARGET_ARCH_IA32 | 6405 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |