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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.cc

Issue 1325183003: X87: [runtime] Remove useless IN builtin. (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
« no previous file with comments | « no previous file | no next file » | 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 #if V8_TARGET_ARCH_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 4934 matching lines...) Expand 10 before | Expand all | Expand 10 after
4945 Label* if_false = NULL; 4945 Label* if_false = NULL;
4946 Label* fall_through = NULL; 4946 Label* fall_through = NULL;
4947 context()->PrepareTest(&materialize_true, &materialize_false, 4947 context()->PrepareTest(&materialize_true, &materialize_false,
4948 &if_true, &if_false, &fall_through); 4948 &if_true, &if_false, &fall_through);
4949 4949
4950 Token::Value op = expr->op(); 4950 Token::Value op = expr->op();
4951 VisitForStackValue(expr->left()); 4951 VisitForStackValue(expr->left());
4952 switch (op) { 4952 switch (op) {
4953 case Token::IN: 4953 case Token::IN:
4954 VisitForStackValue(expr->right()); 4954 VisitForStackValue(expr->right());
4955 __ CallRuntime(Runtime::kHasPropert, 2); 4955 __ CallRuntime(Runtime::kHasProperty, 2);
4956 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL); 4956 PrepareForBailoutBeforeSplit(expr, false, NULL, NULL);
4957 __ cmp(eax, isolate()->factory()->true_value()); 4957 __ cmp(eax, isolate()->factory()->true_value());
4958 Split(equal, if_true, if_false, fall_through); 4958 Split(equal, if_true, if_false, fall_through);
4959 break; 4959 break;
4960 4960
4961 case Token::INSTANCEOF: { 4961 case Token::INSTANCEOF: {
4962 VisitForAccumulatorValue(expr->right()); 4962 VisitForAccumulatorValue(expr->right());
4963 __ Pop(edx); 4963 __ Pop(edx);
4964 InstanceOfStub stub(isolate()); 4964 InstanceOfStub stub(isolate());
4965 __ CallStub(&stub); 4965 __ CallStub(&stub);
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
5218 Assembler::target_address_at(call_target_address, 5218 Assembler::target_address_at(call_target_address,
5219 unoptimized_code)); 5219 unoptimized_code));
5220 return OSR_AFTER_STACK_CHECK; 5220 return OSR_AFTER_STACK_CHECK;
5221 } 5221 }
5222 5222
5223 5223
5224 } // namespace internal 5224 } // namespace internal
5225 } // namespace v8 5225 } // namespace v8
5226 5226
5227 #endif // V8_TARGET_ARCH_X87 5227 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698