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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 } | 129 } |
130 | 130 |
131 | 131 |
132 Handle<Code> CodeStub::GetCode(Isolate* isolate) { | 132 Handle<Code> CodeStub::GetCode(Isolate* isolate) { |
133 Factory* factory = isolate->factory(); | 133 Factory* factory = isolate->factory(); |
134 Heap* heap = isolate->heap(); | 134 Heap* heap = isolate->heap(); |
135 Code* code; | 135 Code* code; |
136 if (UseSpecialCache() | 136 if (UseSpecialCache() |
137 ? FindCodeInSpecialCache(&code, isolate) | 137 ? FindCodeInSpecialCache(&code, isolate) |
138 : FindCodeInCache(&code, isolate)) { | 138 : FindCodeInCache(&code, isolate)) { |
139 ASSERT(IsPregenerated() == code->is_pregenerated()); | 139 ASSERT(IsPregenerated(isolate) == code->is_pregenerated()); |
140 return Handle<Code>(code); | 140 return Handle<Code>(code); |
141 } | 141 } |
142 | 142 |
143 { | 143 { |
144 HandleScope scope(isolate); | 144 HandleScope scope(isolate); |
145 | 145 |
146 Handle<Code> new_object = GenerateCode(isolate); | 146 Handle<Code> new_object = GenerateCode(isolate); |
147 new_object->set_major_key(MajorKey()); | 147 new_object->set_major_key(MajorKey()); |
148 FinishCode(new_object); | 148 FinishCode(new_object); |
149 RecordCodeGeneration(*new_object, isolate); | 149 RecordCodeGeneration(*new_object, isolate); |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
795 InstallDescriptor(isolate, &stub3); | 795 InstallDescriptor(isolate, &stub3); |
796 } | 796 } |
797 | 797 |
798 InternalArrayConstructorStub::InternalArrayConstructorStub( | 798 InternalArrayConstructorStub::InternalArrayConstructorStub( |
799 Isolate* isolate) { | 799 Isolate* isolate) { |
800 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 800 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
801 } | 801 } |
802 | 802 |
803 | 803 |
804 } } // namespace v8::internal | 804 } } // namespace v8::internal |
OLD | NEW |