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

Side by Side Diff: runtime/vm/stub_code_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/object.cc ('k') | runtime/vm/symbols.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) 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" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/assembler_macros.h" 9 #include "vm/assembler_macros.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after
2031 __ ret(); 2031 __ ret();
2032 2032
2033 __ Bind(&not_smi); 2033 __ Bind(&not_smi);
2034 __ LoadClassId(EAX, EAX); 2034 __ LoadClassId(EAX, EAX);
2035 __ SmiTag(EAX); 2035 __ SmiTag(EAX);
2036 __ ret(); 2036 __ ret();
2037 2037
2038 __ Bind(&update_ic_data); 2038 __ Bind(&update_ic_data);
2039 2039
2040 // ECX: ICData 2040 // ECX: ICData
2041 const String& equal_name = String::ZoneHandle(Symbols::New("==")); 2041 const String& equal_name = String::ZoneHandle(Symbols::EqualOperator());
2042 __ movl(EAX, Address(ESP, 1 * kWordSize)); 2042 __ movl(EAX, Address(ESP, 1 * kWordSize));
2043 __ movl(EDI, Address(ESP, 2 * kWordSize)); 2043 __ movl(EDI, Address(ESP, 2 * kWordSize));
2044 AssemblerMacros::EnterStubFrame(assembler); 2044 AssemblerMacros::EnterStubFrame(assembler);
2045 __ pushl(EDI); // arg 0 2045 __ pushl(EDI); // arg 0
2046 __ pushl(EAX); // arg 1 2046 __ pushl(EAX); // arg 1
2047 __ PushObject(equal_name); // Target's name. 2047 __ PushObject(equal_name); // Target's name.
2048 __ pushl(ECX); // ICData 2048 __ pushl(ECX); // ICData
2049 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry); 2049 __ CallRuntime(kUpdateICDataTwoArgsRuntimeEntry);
2050 __ Drop(4); 2050 __ Drop(4);
2051 __ LeaveFrame(); 2051 __ LeaveFrame();
2052 2052
2053 __ jmp(&compute_result, Assembler::kNearJump); 2053 __ jmp(&compute_result, Assembler::kNearJump);
2054 } 2054 }
2055 2055
2056 2056
2057 } // namespace dart 2057 } // namespace dart
2058 2058
2059 #endif // defined TARGET_ARCH_IA32 2059 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698