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

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

Issue 2900683002: [compiler] Delay allocation of code-embedded heap numbers. (Closed)
Patch Set: Fix rebase. Created 3 years, 6 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
« no previous file with comments | « src/code-stubs.cc ('k') | src/codegen.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 <memory> 7 #include <memory>
8 8
9 #include "src/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/bailout-reason.h" 10 #include "src/bailout-reason.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // Generate the code for the stub. 223 // Generate the code for the stub.
224 masm.set_generating_stub(true); 224 masm.set_generating_stub(true);
225 // TODO(yangguo): remove this once we can serialize IC stubs. 225 // TODO(yangguo): remove this once we can serialize IC stubs.
226 masm.enable_serializer(); 226 masm.enable_serializer();
227 NoCurrentFrameScope scope(&masm); 227 NoCurrentFrameScope scope(&masm);
228 GenerateLightweightMiss(&masm, miss); 228 GenerateLightweightMiss(&masm, miss);
229 } 229 }
230 230
231 // Create the code object. 231 // Create the code object.
232 CodeDesc desc; 232 CodeDesc desc;
233 masm.GetCode(&desc); 233 masm.GetCode(isolate(), &desc);
234 234
235 // Copy the generated code into a heap object. 235 // Copy the generated code into a heap object.
236 Handle<Code> new_object = factory->NewCode( 236 Handle<Code> new_object = factory->NewCode(
237 desc, GetCodeFlags(), masm.CodeObject(), NeedsImmovableCode()); 237 desc, GetCodeFlags(), masm.CodeObject(), NeedsImmovableCode());
238 return new_object; 238 return new_object;
239 } 239 }
240 240
241 Handle<Code> HydrogenCodeStub::GenerateRuntimeTailCall( 241 Handle<Code> HydrogenCodeStub::GenerateRuntimeTailCall(
242 CodeStubDescriptor* descriptor) { 242 CodeStubDescriptor* descriptor) {
243 const char* name = CodeStub::MajorName(MajorKey()); 243 const char* name = CodeStub::MajorName(MajorKey());
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 if_true.Return(graph()->GetConstantTrue()); 494 if_true.Return(graph()->GetConstantTrue());
495 if_true.Else(); 495 if_true.Else();
496 if_true.End(); 496 if_true.End();
497 return graph()->GetConstantFalse(); 497 return graph()->GetConstantFalse();
498 } 498 }
499 499
500 Handle<Code> ToBooleanICStub::GenerateCode() { return DoGenerateCode(this); } 500 Handle<Code> ToBooleanICStub::GenerateCode() { return DoGenerateCode(this); }
501 501
502 } // namespace internal 502 } // namespace internal
503 } // namespace v8 503 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698