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

Side by Side Diff: src/hydrogen.cc

Issue 352583008: Rollback to Version 3.28.4 (based on bleeding_edge revision r22031) (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « src/heap.cc ('k') | src/ia32/code-stubs-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/hydrogen.h" 5 #include "src/hydrogen.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 11292 matching lines...) Expand 10 before | Expand all | Expand 10 after
11303 return ast_context()->ReturnValue(value); 11303 return ast_context()->ReturnValue(value);
11304 } else { 11304 } else {
11305 return ast_context()->ReturnControl(New<HIsConstructCallAndBranch>(), 11305 return ast_context()->ReturnControl(New<HIsConstructCallAndBranch>(),
11306 call->id()); 11306 call->id());
11307 } 11307 }
11308 } 11308 }
11309 11309
11310 11310
11311 // Support for arguments.length and arguments[?]. 11311 // Support for arguments.length and arguments[?].
11312 void HOptimizedGraphBuilder::GenerateArgumentsLength(CallRuntime* call) { 11312 void HOptimizedGraphBuilder::GenerateArgumentsLength(CallRuntime* call) {
11313 // Our implementation of arguments (based on this stack frame or an
11314 // adapter below it) does not work for inlined functions. This runtime
11315 // function is blacklisted by AstNode::IsInlineable.
11316 ASSERT(function_state()->outer() == NULL);
11313 ASSERT(call->arguments()->length() == 0); 11317 ASSERT(call->arguments()->length() == 0);
11314 HInstruction* result = NULL; 11318 HInstruction* elements = Add<HArgumentsElements>(false);
11315 if (function_state()->outer() == NULL) { 11319 HArgumentsLength* result = New<HArgumentsLength>(elements);
11316 HInstruction* elements = Add<HArgumentsElements>(false);
11317 result = New<HArgumentsLength>(elements);
11318 } else {
11319 // Number of arguments without receiver.
11320 int argument_count = environment()->
11321 arguments_environment()->parameter_count() - 1;
11322 result = New<HConstant>(argument_count);
11323 }
11324 return ast_context()->ReturnInstruction(result, call->id()); 11320 return ast_context()->ReturnInstruction(result, call->id());
11325 } 11321 }
11326 11322
11327 11323
11328 void HOptimizedGraphBuilder::GenerateArguments(CallRuntime* call) { 11324 void HOptimizedGraphBuilder::GenerateArguments(CallRuntime* call) {
11329 // Our implementation of arguments (based on this stack frame or an 11325 // Our implementation of arguments (based on this stack frame or an
11330 // adapter below it) does not work for inlined functions. This runtime 11326 // adapter below it) does not work for inlined functions. This runtime
11331 // function is blacklisted by AstNode::IsInlineable. 11327 // function is blacklisted by AstNode::IsInlineable.
11332 ASSERT(function_state()->outer() == NULL); 11328 ASSERT(function_state()->outer() == NULL);
11333 ASSERT(call->arguments()->length() == 1); 11329 ASSERT(call->arguments()->length() == 1);
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after
12356 if (ShouldProduceTraceOutput()) { 12352 if (ShouldProduceTraceOutput()) {
12357 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 12353 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
12358 } 12354 }
12359 12355
12360 #ifdef DEBUG 12356 #ifdef DEBUG
12361 graph_->Verify(false); // No full verify. 12357 graph_->Verify(false); // No full verify.
12362 #endif 12358 #endif
12363 } 12359 }
12364 12360
12365 } } // namespace v8::internal 12361 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698