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

Side by Side Diff: src/arm/full-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 | « src/arm/fast-codegen-arm.cc ('k') | src/ia32/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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // o fp: our caller's frame pointer 49 // o fp: our caller's frame pointer
50 // o sp: stack pointer 50 // o sp: stack pointer
51 // o lr: return address 51 // o lr: return address
52 // 52 //
53 // The function builds a JS frame. Please see JavaScriptFrameConstants in 53 // The function builds a JS frame. Please see JavaScriptFrameConstants in
54 // frames-arm.h for its layout. 54 // frames-arm.h for its layout.
55 void FullCodeGenerator::Generate(CompilationInfo* info, Mode mode) { 55 void FullCodeGenerator::Generate(CompilationInfo* info, Mode mode) {
56 ASSERT(info_ == NULL); 56 ASSERT(info_ == NULL);
57 info_ = info; 57 info_ = info;
58 SetFunctionPosition(function()); 58 SetFunctionPosition(function());
59 Comment cmnt(masm_, "[ function compiled by full code generator");
59 60
60 if (mode == PRIMARY) { 61 if (mode == PRIMARY) {
61 int locals_count = scope()->num_stack_slots(); 62 int locals_count = scope()->num_stack_slots();
62 63
63 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit()); 64 __ stm(db_w, sp, r1.bit() | cp.bit() | fp.bit() | lr.bit());
64 if (locals_count > 0) { 65 if (locals_count > 0) {
65 // Load undefined value here, so the value is ready for the loop 66 // Load undefined value here, so the value is ready for the loop
66 // below. 67 // below.
67 __ LoadRoot(ip, Heap::kUndefinedValueRootIndex); 68 __ LoadRoot(ip, Heap::kUndefinedValueRootIndex);
68 } 69 }
(...skipping 1787 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 __ pop(result_register()); 1857 __ pop(result_register());
1857 ASSERT_EQ(1, kSmiTagSize + kSmiShiftSize); 1858 ASSERT_EQ(1, kSmiTagSize + kSmiShiftSize);
1858 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 1859 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
1859 __ add(pc, r1, Operand(masm_->CodeObject())); 1860 __ add(pc, r1, Operand(masm_->CodeObject()));
1860 } 1861 }
1861 1862
1862 1863
1863 #undef __ 1864 #undef __
1864 1865
1865 } } // namespace v8::internal 1866 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698