OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |