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

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

Issue 652110: Add comment to generated code that says which code generator compiled it. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 10 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 | « src/arm/full-codegen-arm.cc ('k') | src/ia32/fast-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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // Calling conventions: 122 // Calling conventions:
123 // ebp: caller's frame pointer 123 // ebp: caller's frame pointer
124 // esp: stack pointer 124 // esp: stack pointer
125 // edi: called JS function 125 // edi: called JS function
126 // esi: callee's context 126 // esi: callee's context
127 127
128 void CodeGenerator::Generate(CompilationInfo* info) { 128 void CodeGenerator::Generate(CompilationInfo* info) {
129 // Record the position for debugging purposes. 129 // Record the position for debugging purposes.
130 CodeForFunctionPosition(info->function()); 130 CodeForFunctionPosition(info->function());
131 Comment cmnt(masm_, "[ function compiled by virtual frame code generator");
131 132
132 // Initialize state. 133 // Initialize state.
133 info_ = info; 134 info_ = info;
134 ASSERT(allocator_ == NULL); 135 ASSERT(allocator_ == NULL);
135 RegisterAllocator register_allocator(this); 136 RegisterAllocator register_allocator(this);
136 allocator_ = &register_allocator; 137 allocator_ = &register_allocator;
137 ASSERT(frame_ == NULL); 138 ASSERT(frame_ == NULL);
138 frame_ = new VirtualFrame(); 139 frame_ = new VirtualFrame();
139 set_in_spilled_code(false); 140 set_in_spilled_code(false);
140 141
(...skipping 10876 matching lines...) Expand 10 before | Expand all | Expand 10 after
11017 11018
11018 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater) 11019 // Call the runtime; it returns -1 (less), 0 (equal), or 1 (greater)
11019 // tagged as a small integer. 11020 // tagged as a small integer.
11020 __ bind(&runtime); 11021 __ bind(&runtime);
11021 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1); 11022 __ TailCallRuntime(ExternalReference(Runtime::kStringCompare), 2, 1);
11022 } 11023 }
11023 11024
11024 #undef __ 11025 #undef __
11025 11026
11026 } } // namespace v8::internal 11027 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ia32/fast-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698