| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3066 Label materialize_true, materialize_false; | 3066 Label materialize_true, materialize_false; |
| 3067 Label* if_true = NULL; | 3067 Label* if_true = NULL; |
| 3068 Label* if_false = NULL; | 3068 Label* if_false = NULL; |
| 3069 Label* fall_through = NULL; | 3069 Label* fall_through = NULL; |
| 3070 context()->PrepareTest(&materialize_true, &materialize_false, | 3070 context()->PrepareTest(&materialize_true, &materialize_false, |
| 3071 &if_true, &if_false, &fall_through); | 3071 &if_true, &if_false, &fall_through); |
| 3072 | 3072 |
| 3073 Handle<Map> map = masm()->isolate()->factory()->heap_number_map(); | 3073 Handle<Map> map = masm()->isolate()->factory()->heap_number_map(); |
| 3074 __ CheckMap(rax, map, if_false, DO_SMI_CHECK); | 3074 __ CheckMap(rax, map, if_false, DO_SMI_CHECK); |
| 3075 __ cmpl(FieldOperand(rax, HeapNumber::kExponentOffset), | 3075 __ cmpl(FieldOperand(rax, HeapNumber::kExponentOffset), |
| 3076 Immediate(0x80000000)); | 3076 Immediate(0x1)); |
| 3077 __ j(not_equal, if_false); | 3077 __ j(no_overflow, if_false); |
| 3078 __ cmpl(FieldOperand(rax, HeapNumber::kMantissaOffset), | 3078 __ cmpl(FieldOperand(rax, HeapNumber::kMantissaOffset), |
| 3079 Immediate(0x00000000)); | 3079 Immediate(0x00000000)); |
| 3080 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); | 3080 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); |
| 3081 Split(equal, if_true, if_false, fall_through); | 3081 Split(equal, if_true, if_false, fall_through); |
| 3082 | 3082 |
| 3083 context()->Plug(if_true, if_false); | 3083 context()->Plug(if_true, if_false); |
| 3084 } | 3084 } |
| 3085 | 3085 |
| 3086 | 3086 |
| 3087 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { | 3087 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { |
| (...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4894 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4894 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 4895 Assembler::target_address_at(call_target_address, | 4895 Assembler::target_address_at(call_target_address, |
| 4896 unoptimized_code)); | 4896 unoptimized_code)); |
| 4897 return OSR_AFTER_STACK_CHECK; | 4897 return OSR_AFTER_STACK_CHECK; |
| 4898 } | 4898 } |
| 4899 | 4899 |
| 4900 | 4900 |
| 4901 } } // namespace v8::internal | 4901 } } // namespace v8::internal |
| 4902 | 4902 |
| 4903 #endif // V8_TARGET_ARCH_X64 | 4903 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |