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

Side by Side Diff: src/hydrogen.cc

Issue 1350113002: [runtime] Replace COMPARE/COMPARE_STRONG with proper Object::Compare. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 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 <sstream> 7 #include <sstream>
8 8
9 #include "src/allocation-site-scopes.h" 9 #include "src/allocation-site-scopes.h"
10 #include "src/ast-numbering.h" 10 #include "src/ast-numbering.h"
(...skipping 12460 matching lines...) Expand 10 before | Expand all | Expand 10 after
12471 // Fast support for SubString. 12471 // Fast support for SubString.
12472 void HOptimizedGraphBuilder::GenerateSubString(CallRuntime* call) { 12472 void HOptimizedGraphBuilder::GenerateSubString(CallRuntime* call) {
12473 DCHECK_EQ(3, call->arguments()->length()); 12473 DCHECK_EQ(3, call->arguments()->length());
12474 CHECK_ALIVE(VisitExpressions(call->arguments())); 12474 CHECK_ALIVE(VisitExpressions(call->arguments()));
12475 PushArgumentsFromEnvironment(call->arguments()->length()); 12475 PushArgumentsFromEnvironment(call->arguments()->length());
12476 HCallStub* result = New<HCallStub>(CodeStub::SubString, 3); 12476 HCallStub* result = New<HCallStub>(CodeStub::SubString, 3);
12477 return ast_context()->ReturnInstruction(result, call->id()); 12477 return ast_context()->ReturnInstruction(result, call->id());
12478 } 12478 }
12479 12479
12480 12480
12481 // Fast support for StringCompare.
12482 void HOptimizedGraphBuilder::GenerateStringCompare(CallRuntime* call) {
12483 DCHECK_EQ(2, call->arguments()->length());
12484 CHECK_ALIVE(VisitExpressions(call->arguments()));
12485 PushArgumentsFromEnvironment(call->arguments()->length());
12486 HCallStub* result = New<HCallStub>(CodeStub::StringCompare, 2);
12487 return ast_context()->ReturnInstruction(result, call->id());
12488 }
12489
12490
12491 void HOptimizedGraphBuilder::GenerateStringGetLength(CallRuntime* call) { 12481 void HOptimizedGraphBuilder::GenerateStringGetLength(CallRuntime* call) {
12492 DCHECK(call->arguments()->length() == 1); 12482 DCHECK(call->arguments()->length() == 1);
12493 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 12483 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
12494 HValue* string = Pop(); 12484 HValue* string = Pop();
12495 HInstruction* result = BuildLoadStringLength(string); 12485 HInstruction* result = BuildLoadStringLength(string);
12496 return ast_context()->ReturnInstruction(result, call->id()); 12486 return ast_context()->ReturnInstruction(result, call->id());
12497 } 12487 }
12498 12488
12499 12489
12500 // Support for direct calls from JavaScript to native RegExp code. 12490 // Support for direct calls from JavaScript to native RegExp code.
(...skipping 1043 matching lines...) Expand 10 before | Expand all | Expand 10 after
13544 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13534 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13545 } 13535 }
13546 13536
13547 #ifdef DEBUG 13537 #ifdef DEBUG
13548 graph_->Verify(false); // No full verify. 13538 graph_->Verify(false); // No full verify.
13549 #endif 13539 #endif
13550 } 13540 }
13551 13541
13552 } // namespace internal 13542 } // namespace internal
13553 } // namespace v8 13543 } // namespace v8
OLDNEW
« no previous file with comments | « src/hydrogen.h ('k') | src/ia32/code-stubs-ia32.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698