| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 GetICState()); | 125 GetICState()); |
| 126 Handle<Code> new_object = factory->NewCode( | 126 Handle<Code> new_object = factory->NewCode( |
| 127 desc, flags, masm.CodeObject(), NeedsImmovableCode()); | 127 desc, flags, masm.CodeObject(), NeedsImmovableCode()); |
| 128 RecordCodeGeneration(*new_object, &masm); | 128 RecordCodeGeneration(*new_object, &masm); |
| 129 FinishCode(new_object); | 129 FinishCode(new_object); |
| 130 | 130 |
| 131 if (UseSpecialCache()) { | 131 if (UseSpecialCache()) { |
| 132 AddToSpecialCache(new_object); | 132 AddToSpecialCache(new_object); |
| 133 } else { | 133 } else { |
| 134 // Update the dictionary and the root in Heap. | 134 // Update the dictionary and the root in Heap. |
| 135 Handle<NumberDictionary> dict = | 135 Handle<NotSeededNumberDictionary> dict = |
| 136 factory->DictionaryAtNumberPut( | 136 factory->NotSeededDictionaryAtNumberPut( |
| 137 Handle<NumberDictionary>(heap->code_stubs()), | 137 Handle<NotSeededNumberDictionary>(heap->code_stubs()), |
| 138 GetKey(), | 138 GetKey(), |
| 139 new_object); | 139 new_object); |
| 140 heap->public_set_code_stubs(*dict); | 140 heap->public_set_code_stubs(*dict); |
| 141 } | 141 } |
| 142 code = *new_object; | 142 code = *new_object; |
| 143 } | 143 } |
| 144 | 144 |
| 145 Activate(code); | 145 Activate(code); |
| 146 ASSERT(!NeedsImmovableCode() || heap->lo_space()->Contains(code)); | 146 ASSERT(!NeedsImmovableCode() || heap->lo_space()->Contains(code)); |
| 147 return Handle<Code>(code, isolate); | 147 return Handle<Code>(code, isolate); |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(masm, is_jsarray_); | 440 KeyedStoreStubCompiler::GenerateStoreFastDoubleElement(masm, is_jsarray_); |
| 441 } else { | 441 } else { |
| 442 UNREACHABLE(); | 442 UNREACHABLE(); |
| 443 } | 443 } |
| 444 } | 444 } |
| 445 masm->bind(&fail); | 445 masm->bind(&fail); |
| 446 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode_); | 446 KeyedStoreIC::GenerateRuntimeSetProperty(masm, strict_mode_); |
| 447 } | 447 } |
| 448 | 448 |
| 449 } } // namespace v8::internal | 449 } } // namespace v8::internal |
| OLD | NEW |