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

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

Issue 1476763002: Make whether or not a Code object should be created by masm explicit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: enum class FTW Created 5 years 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
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "src/bailout-reason.h" 7 #include "src/bailout-reason.h"
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/field-index.h" 10 #include "src/field-index.h"
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 Stub* casted_stub() { return static_cast<Stub*>(stub()); } 244 Stub* casted_stub() { return static_cast<Stub*>(stub()); }
245 }; 245 };
246 246
247 247
248 Handle<Code> HydrogenCodeStub::GenerateLightweightMissCode( 248 Handle<Code> HydrogenCodeStub::GenerateLightweightMissCode(
249 ExternalReference miss) { 249 ExternalReference miss) {
250 Factory* factory = isolate()->factory(); 250 Factory* factory = isolate()->factory();
251 251
252 // Generate the new code. 252 // Generate the new code.
253 MacroAssembler masm(isolate(), NULL, 256); 253 MacroAssembler masm(isolate(), NULL, 256, CodeObjectRequired::kYes);
254 254
255 { 255 {
256 // Update the static counter each time a new code stub is generated. 256 // Update the static counter each time a new code stub is generated.
257 isolate()->counters()->code_stubs()->Increment(); 257 isolate()->counters()->code_stubs()->Increment();
258 258
259 // Generate the code for the stub. 259 // Generate the code for the stub.
260 masm.set_generating_stub(true); 260 masm.set_generating_stub(true);
261 // TODO(yangguo): remove this once we can serialize IC stubs. 261 // TODO(yangguo): remove this once we can serialize IC stubs.
262 masm.enable_serializer(); 262 masm.enable_serializer();
263 NoCurrentFrameScope scope(&masm); 263 NoCurrentFrameScope scope(&masm);
(...skipping 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after
2389 return Pop(); 2389 return Pop();
2390 } 2390 }
2391 2391
2392 2392
2393 Handle<Code> KeyedLoadGenericStub::GenerateCode() { 2393 Handle<Code> KeyedLoadGenericStub::GenerateCode() {
2394 return DoGenerateCode(this); 2394 return DoGenerateCode(this);
2395 } 2395 }
2396 2396
2397 } // namespace internal 2397 } // namespace internal
2398 } // namespace v8 2398 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698