Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: src/code-stubs.cc

Issue 2869683004: [arm] Share constant pool entries in snapshot. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/code-stubs.h" 5 #include "src/code-stubs.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/assembler-inl.h" 10 #include "src/assembler-inl.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 Heap* heap = isolate()->heap(); 157 Heap* heap = isolate()->heap();
158 Code* code; 158 Code* code;
159 if (UseSpecialCache() ? FindCodeInSpecialCache(&code) 159 if (UseSpecialCache() ? FindCodeInSpecialCache(&code)
160 : FindCodeInCache(&code)) { 160 : FindCodeInCache(&code)) {
161 DCHECK(GetCodeKind() == code->kind()); 161 DCHECK(GetCodeKind() == code->kind());
162 return Handle<Code>(code); 162 return Handle<Code>(code);
163 } 163 }
164 164
165 { 165 {
166 HandleScope scope(isolate()); 166 HandleScope scope(isolate());
167 CanonicalHandleScope canonical(isolate());
167 168
168 Handle<Code> new_object = GenerateCode(); 169 Handle<Code> new_object = GenerateCode();
169 new_object->set_stub_key(GetKey()); 170 new_object->set_stub_key(GetKey());
170 FinishCode(new_object); 171 FinishCode(new_object);
171 RecordCodeGeneration(new_object); 172 RecordCodeGeneration(new_object);
172 173
173 #ifdef ENABLE_DISASSEMBLER 174 #ifdef ENABLE_DISASSEMBLER
174 if (FLAG_print_code_stubs) { 175 if (FLAG_print_code_stubs) {
175 CodeTracer::Scope trace_scope(isolate()->GetCodeTracer()); 176 CodeTracer::Scope trace_scope(isolate()->GetCodeTracer());
176 OFStream os(trace_scope.file()); 177 OFStream os(trace_scope.file());
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 } 1163 }
1163 1164
1164 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate) 1165 ArrayConstructorStub::ArrayConstructorStub(Isolate* isolate)
1165 : PlatformCodeStub(isolate) {} 1166 : PlatformCodeStub(isolate) {}
1166 1167
1167 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate) 1168 InternalArrayConstructorStub::InternalArrayConstructorStub(Isolate* isolate)
1168 : PlatformCodeStub(isolate) {} 1169 : PlatformCodeStub(isolate) {}
1169 1170
1170 } // namespace internal 1171 } // namespace internal
1171 } // namespace v8 1172 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698