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

Side by Side Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 21885003: Enables unboxed mints in ia32 javascript int compatability mode. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/intermediate_language.h » ('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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 26 matching lines...) Expand all
37 // Verify the labels explicitly here. 37 // Verify the labels explicitly here.
38 for (int i = 0; i < block_info_.length(); ++i) { 38 for (int i = 0; i < block_info_.length(); ++i) {
39 ASSERT(!block_info_[i]->jump_label()->IsLinked()); 39 ASSERT(!block_info_[i]->jump_label()->IsLinked());
40 ASSERT(!block_info_[i]->jump_label()->HasNear()); 40 ASSERT(!block_info_[i]->jump_label()->HasNear());
41 } 41 }
42 } 42 }
43 43
44 44
45 bool FlowGraphCompiler::SupportsUnboxedMints() { 45 bool FlowGraphCompiler::SupportsUnboxedMints() {
46 // Support unboxed mints when SSE 4.1 is available. 46 // Support unboxed mints when SSE 4.1 is available.
47 return FLAG_unbox_mints && CPUFeatures::sse4_1_supported() && 47 return FLAG_unbox_mints && CPUFeatures::sse4_1_supported();
48 !FLAG_throw_on_javascript_int_overflow;
49 } 48 }
50 49
51 50
52 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, 51 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler,
53 DeoptInfoBuilder* builder) { 52 DeoptInfoBuilder* builder) {
54 if (deopt_env_ == NULL) return DeoptInfo::null(); 53 if (deopt_env_ == NULL) return DeoptInfo::null();
55 54
56 intptr_t stack_height = compiler->StackSize(); 55 intptr_t stack_height = compiler->StackSize();
57 AllocateIncomingParametersRecursive(deopt_env_, &stack_height); 56 AllocateIncomingParametersRecursive(deopt_env_, &stack_height);
58 57
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 __ movups(reg, Address(ESP, 0)); 1906 __ movups(reg, Address(ESP, 0));
1908 __ addl(ESP, Immediate(kFpuRegisterSize)); 1907 __ addl(ESP, Immediate(kFpuRegisterSize));
1909 } 1908 }
1910 1909
1911 1910
1912 #undef __ 1911 #undef __
1913 1912
1914 } // namespace dart 1913 } // namespace dart
1915 1914
1916 #endif // defined TARGET_ARCH_IA32 1915 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/code_generator.h ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698