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

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

Issue 11230034: Fix super ==: Test first for null before call inf super ==. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_ 5 #ifndef VM_FLOW_GRAPH_COMPILER_IA32_H_
6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_ 6 #define VM_FLOW_GRAPH_COMPILER_IA32_H_
7 7
8 #ifndef VM_FLOW_GRAPH_COMPILER_H_ 8 #ifndef VM_FLOW_GRAPH_COMPILER_H_
9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h. 9 #error Include flow_graph_compiler.h instead of flow_graph_compiler_ia32.h.
10 #endif 10 #endif
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void EmitDoubleCompareBranch(Condition true_condition, 150 void EmitDoubleCompareBranch(Condition true_condition,
151 XmmRegister left, 151 XmmRegister left,
152 XmmRegister right, 152 XmmRegister right,
153 BranchInstr* branch); 153 BranchInstr* branch);
154 void EmitDoubleCompareBool(Condition true_condition, 154 void EmitDoubleCompareBool(Condition true_condition,
155 XmmRegister left, 155 XmmRegister left,
156 XmmRegister right, 156 XmmRegister right,
157 Register result); 157 Register result);
158 158
159 void EmitEqualityRegConstCompare(Register reg, const Object& obj); 159 void EmitEqualityRegConstCompare(Register reg, const Object& obj);
160 // Implement equality: if any of the arguments is null do identity check.
161 // Fallthrough calls super equality.
162 void EmitSuperEqualityCallPrologue(Register result, Label* skip_call);
160 163
161 intptr_t StackSize() const; 164 intptr_t StackSize() const;
162 165
163 // Returns assembler label associated with the given block entry. 166 // Returns assembler label associated with the given block entry.
164 Label* GetBlockLabel(BlockEntryInstr* block_entry) const; 167 Label* GetBlockLabel(BlockEntryInstr* block_entry) const;
165 168
166 // Returns true if there is a next block after the current one in 169 // Returns true if there is a next block after the current one in
167 // the block order and if it is the given block. 170 // the block order and if it is the given block.
168 bool IsNextBlock(BlockEntryInstr* block_entry) const; 171 bool IsNextBlock(BlockEntryInstr* block_entry) const;
169 172
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 // that should be used when deoptimizing we store it in this variable. 329 // that should be used when deoptimizing we store it in this variable.
327 // In future AddDeoptStub should be moved out of the instruction template. 330 // In future AddDeoptStub should be moved out of the instruction template.
328 Environment* pending_deoptimization_env_; 331 Environment* pending_deoptimization_env_;
329 332
330 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler); 333 DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
331 }; 334 };
332 335
333 } // namespace dart 336 } // namespace dart
334 337
335 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_ 338 #endif // VM_FLOW_GRAPH_COMPILER_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | runtime/vm/intermediate_language.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698