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

Side by Side Diff: src/hydrogen.cc

Issue 1183213002: Inline code generation for %_IsTypedArray (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: don't remove mips64 EmitIsArray Created 5 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/hydrogen.h ('k') | src/ia32/full-codegen-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 <sstream> 7 #include <sstream>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 11740 matching lines...) Expand 10 before | Expand all | Expand 10 after
11751 void HOptimizedGraphBuilder::GenerateIsArray(CallRuntime* call) { 11751 void HOptimizedGraphBuilder::GenerateIsArray(CallRuntime* call) {
11752 DCHECK(call->arguments()->length() == 1); 11752 DCHECK(call->arguments()->length() == 1);
11753 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 11753 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
11754 HValue* value = Pop(); 11754 HValue* value = Pop();
11755 HHasInstanceTypeAndBranch* result = 11755 HHasInstanceTypeAndBranch* result =
11756 New<HHasInstanceTypeAndBranch>(value, JS_ARRAY_TYPE); 11756 New<HHasInstanceTypeAndBranch>(value, JS_ARRAY_TYPE);
11757 return ast_context()->ReturnControl(result, call->id()); 11757 return ast_context()->ReturnControl(result, call->id());
11758 } 11758 }
11759 11759
11760 11760
11761 void HOptimizedGraphBuilder::GenerateIsTypedArray(CallRuntime* call) {
11762 DCHECK(call->arguments()->length() == 1);
11763 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
11764 HValue* value = Pop();
11765 HHasInstanceTypeAndBranch* result =
11766 New<HHasInstanceTypeAndBranch>(value, JS_TYPED_ARRAY_TYPE);
11767 return ast_context()->ReturnControl(result, call->id());
11768 }
11769
11770
11761 void HOptimizedGraphBuilder::GenerateIsRegExp(CallRuntime* call) { 11771 void HOptimizedGraphBuilder::GenerateIsRegExp(CallRuntime* call) {
11762 DCHECK(call->arguments()->length() == 1); 11772 DCHECK(call->arguments()->length() == 1);
11763 CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); 11773 CHECK_ALIVE(VisitForValue(call->arguments()->at(0)));
11764 HValue* value = Pop(); 11774 HValue* value = Pop();
11765 HHasInstanceTypeAndBranch* result = 11775 HHasInstanceTypeAndBranch* result =
11766 New<HHasInstanceTypeAndBranch>(value, JS_REGEXP_TYPE); 11776 New<HHasInstanceTypeAndBranch>(value, JS_REGEXP_TYPE);
11767 return ast_context()->ReturnControl(result, call->id()); 11777 return ast_context()->ReturnControl(result, call->id());
11768 } 11778 }
11769 11779
11770 11780
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
13174 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13184 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13175 } 13185 }
13176 13186
13177 #ifdef DEBUG 13187 #ifdef DEBUG
13178 graph_->Verify(false); // No full verify. 13188 graph_->Verify(false); // No full verify.
13179 #endif 13189 #endif
13180 } 13190 }
13181 13191
13182 } // namespace internal 13192 } // namespace internal
13183 } // namespace v8 13193 } // namespace v8
OLDNEW
« no previous file with comments | « src/hydrogen.h ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698