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

Side by Side Diff: src/arm/codegen-arm.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 | « no previous file | src/arm/fast-codegen-arm.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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Calling conventions: 139 // Calling conventions:
140 // fp: caller's frame pointer 140 // fp: caller's frame pointer
141 // sp: stack pointer 141 // sp: stack pointer
142 // r1: called JS function 142 // r1: called JS function
143 // cp: callee's context 143 // cp: callee's context
144 144
145 void CodeGenerator::Generate(CompilationInfo* info) { 145 void CodeGenerator::Generate(CompilationInfo* info) {
146 // Record the position for debugging purposes. 146 // Record the position for debugging purposes.
147 CodeForFunctionPosition(info->function()); 147 CodeForFunctionPosition(info->function());
148 Comment cmnt(masm_, "[ function compiled by virtual frame code generator");
148 149
149 // Initialize state. 150 // Initialize state.
150 info_ = info; 151 info_ = info;
151 ASSERT(allocator_ == NULL); 152 ASSERT(allocator_ == NULL);
152 RegisterAllocator register_allocator(this); 153 RegisterAllocator register_allocator(this);
153 allocator_ = &register_allocator; 154 allocator_ = &register_allocator;
154 ASSERT(frame_ == NULL); 155 ASSERT(frame_ == NULL);
155 frame_ = new VirtualFrame(); 156 frame_ = new VirtualFrame();
156 cc_reg_ = al; 157 cc_reg_ = al;
157 { 158 {
(...skipping 7499 matching lines...) Expand 10 before | Expand all | Expand 10 after
7657 7658
7658 // Just jump to runtime to add the two strings. 7659 // Just jump to runtime to add the two strings.
7659 __ bind(&string_add_runtime); 7660 __ bind(&string_add_runtime);
7660 __ TailCallRuntime(ExternalReference(Runtime::kStringAdd), 2, 1); 7661 __ TailCallRuntime(ExternalReference(Runtime::kStringAdd), 2, 1);
7661 } 7662 }
7662 7663
7663 7664
7664 #undef __ 7665 #undef __
7665 7666
7666 } } // namespace v8::internal 7667 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/arm/fast-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698