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

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

Issue 11236050: Add == method name to symbol table (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
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intermediate_language_x64.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 (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 #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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 static void EmitEqualityAsInstanceCall(FlowGraphCompiler* compiler, 325 static void EmitEqualityAsInstanceCall(FlowGraphCompiler* compiler,
326 intptr_t deopt_id, 326 intptr_t deopt_id,
327 intptr_t token_pos, 327 intptr_t token_pos,
328 Token::Kind kind, 328 Token::Kind kind,
329 LocationSummary* locs) { 329 LocationSummary* locs) {
330 if (!compiler->is_optimizing()) { 330 if (!compiler->is_optimizing()) {
331 compiler->AddCurrentDescriptor(PcDescriptors::kDeoptBefore, 331 compiler->AddCurrentDescriptor(PcDescriptors::kDeoptBefore,
332 deopt_id, 332 deopt_id,
333 token_pos); 333 token_pos);
334 } 334 }
335 const String& operator_name = String::ZoneHandle(Symbols::New("==")); 335 const String& operator_name = String::ZoneHandle(Symbols::EqualOperator());
336 const int kNumberOfArguments = 2; 336 const int kNumberOfArguments = 2;
337 const Array& kNoArgumentNames = Array::Handle(); 337 const Array& kNoArgumentNames = Array::Handle();
338 const int kNumArgumentsChecked = 2; 338 const int kNumArgumentsChecked = 2;
339 339
340 const Immediate raw_null = 340 const Immediate raw_null =
341 Immediate(reinterpret_cast<intptr_t>(Object::null())); 341 Immediate(reinterpret_cast<intptr_t>(Object::null()));
342 Label check_identity; 342 Label check_identity;
343 __ cmpl(Address(ESP, 0 * kWordSize), raw_null); 343 __ cmpl(Address(ESP, 0 * kWordSize), raw_null);
344 __ j(EQUAL, &check_identity, Assembler::kNearJump); 344 __ j(EQUAL, &check_identity, Assembler::kNearJump);
345 __ cmpl(Address(ESP, 1 * kWordSize), raw_null); 345 __ cmpl(Address(ESP, 1 * kWordSize), raw_null);
(...skipping 2222 matching lines...) Expand 10 before | Expand all | Expand 10 after
2568 __ pcmpeqq(XMM0, XMM0); // Generate all 1's. 2568 __ pcmpeqq(XMM0, XMM0); // Generate all 1's.
2569 __ pxor(value, XMM0); 2569 __ pxor(value, XMM0);
2570 } 2570 }
2571 2571
2572 2572
2573 } // namespace dart 2573 } // namespace dart
2574 2574
2575 #undef __ 2575 #undef __
2576 2576
2577 #endif // defined TARGET_ARCH_X64 2577 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698