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

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

Issue 202083002: [ia32/x64] Smaller instruction to check NaN (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: only NaN related code remains Created 6 years, 9 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/ia32/code-stubs-ia32.cc ('k') | src/ia32/lithium-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 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 3075 matching lines...) Expand 10 before | Expand all | Expand 10 after
3086 3086
3087 Label materialize_true, materialize_false; 3087 Label materialize_true, materialize_false;
3088 Label* if_true = NULL; 3088 Label* if_true = NULL;
3089 Label* if_false = NULL; 3089 Label* if_false = NULL;
3090 Label* fall_through = NULL; 3090 Label* fall_through = NULL;
3091 context()->PrepareTest(&materialize_true, &materialize_false, 3091 context()->PrepareTest(&materialize_true, &materialize_false,
3092 &if_true, &if_false, &fall_through); 3092 &if_true, &if_false, &fall_through);
3093 3093
3094 Handle<Map> map = masm()->isolate()->factory()->heap_number_map(); 3094 Handle<Map> map = masm()->isolate()->factory()->heap_number_map();
3095 __ CheckMap(eax, map, if_false, DO_SMI_CHECK); 3095 __ CheckMap(eax, map, if_false, DO_SMI_CHECK);
3096 __ cmp(FieldOperand(eax, HeapNumber::kExponentOffset), Immediate(0x80000000)); 3096 __ cmp(FieldOperand(eax, HeapNumber::kExponentOffset), Immediate(0x1));
3097 __ j(not_equal, if_false); 3097 __ j(no_overflow, if_false);
3098 __ cmp(FieldOperand(eax, HeapNumber::kMantissaOffset), Immediate(0x00000000)); 3098 __ cmp(FieldOperand(eax, HeapNumber::kMantissaOffset), Immediate(0x00000000));
3099 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false); 3099 PrepareForBailoutBeforeSplit(expr, true, if_true, if_false);
3100 Split(equal, if_true, if_false, fall_through); 3100 Split(equal, if_true, if_false, fall_through);
3101 3101
3102 context()->Plug(if_true, if_false); 3102 context()->Plug(if_true, if_false);
3103 } 3103 }
3104 3104
3105 3105
3106 3106
3107 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) { 3107 void FullCodeGenerator::EmitIsArray(CallRuntime* expr) {
(...skipping 1789 matching lines...) Expand 10 before | Expand all | Expand 10 after
4897 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4897 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4898 Assembler::target_address_at(call_target_address, 4898 Assembler::target_address_at(call_target_address,
4899 unoptimized_code)); 4899 unoptimized_code));
4900 return OSR_AFTER_STACK_CHECK; 4900 return OSR_AFTER_STACK_CHECK;
4901 } 4901 }
4902 4902
4903 4903
4904 } } // namespace v8::internal 4904 } } // namespace v8::internal
4905 4905
4906 #endif // V8_TARGET_ARCH_IA32 4906 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698