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

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

Issue 12093089: Support pass-through of stub caller arguments (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix bugs Created 7 years, 10 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 | Annotate | Revision Log
OLDNEW
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 parameters_.Reset(new HParameter*[descriptor->register_param_count_]); 95 parameters_.Reset(new HParameter*[descriptor->register_param_count_]);
96 96
97 HConstant* undefined_constant = new(zone()) HConstant( 97 HConstant* undefined_constant = new(zone()) HConstant(
98 isolate()->factory()->undefined_value(), Representation::Tagged()); 98 isolate()->factory()->undefined_value(), Representation::Tagged());
99 AddInstruction(undefined_constant); 99 AddInstruction(undefined_constant);
100 graph()->set_undefined_constant(undefined_constant); 100 graph()->set_undefined_constant(undefined_constant);
101 101
102 HGraph* graph = this->graph(); 102 HGraph* graph = this->graph();
103 Zone* zone = this->zone(); 103 Zone* zone = this->zone();
104 for (int i = 0; i < descriptor->register_param_count_; ++i) { 104 for (int i = 0; i < descriptor->register_param_count_; ++i) {
105 HParameter* param = new(zone) HParameter(i); 105 HParameter* param =
106 new(zone) HParameter(i, HParameter::REGISTER_PARAMETER);
106 AddInstruction(param); 107 AddInstruction(param);
107 graph->start_environment()->Push(param); 108 graph->start_environment()->Push(param);
108 parameters_[i] = param; 109 parameters_[i] = param;
109 } 110 }
110 111
111 context_ = new(zone) HContext(); 112 context_ = new(zone) HContext();
112 AddInstruction(context_); 113 AddInstruction(context_);
113 114
114 AddSimulate(BailoutId::StubEntry()); 115 AddSimulate(BailoutId::StubEntry());
115 116
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 244
244 245
245 Handle<Code> TransitionElementsKindStub::GenerateCode() { 246 Handle<Code> TransitionElementsKindStub::GenerateCode() {
246 CodeStubGraphBuilder<TransitionElementsKindStub> builder(this); 247 CodeStubGraphBuilder<TransitionElementsKindStub> builder(this);
247 LChunk* chunk = OptimizeGraph(builder.CreateGraph()); 248 LChunk* chunk = OptimizeGraph(builder.CreateGraph());
248 return chunk->Codegen(Code::COMPILED_STUB); 249 return chunk->Codegen(Code::COMPILED_STUB);
249 } 250 }
250 251
251 252
252 } } // namespace v8::internal 253 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/deoptimizer.cc » ('j') | src/frames.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698