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

Side by Side Diff: src/arm/full-codegen-arm.cc

Issue 3791009: Add stop-at flag implementation to full compiler on all platforms. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 2 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/ia32/full-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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // o lr: return address 55 // o lr: return address
56 // 56 //
57 // The function builds a JS frame. Please see JavaScriptFrameConstants in 57 // The function builds a JS frame. Please see JavaScriptFrameConstants in
58 // frames-arm.h for its layout. 58 // frames-arm.h for its layout.
59 void FullCodeGenerator::Generate(CompilationInfo* info) { 59 void FullCodeGenerator::Generate(CompilationInfo* info) {
60 ASSERT(info_ == NULL); 60 ASSERT(info_ == NULL);
61 info_ = info; 61 info_ = info;
62 SetFunctionPosition(function()); 62 SetFunctionPosition(function());
63 Comment cmnt(masm_, "[ function compiled by full code generator"); 63 Comment cmnt(masm_, "[ function compiled by full code generator");
64 64
65 #ifdef DEBUG
66 if (strlen(FLAG_stop_at) > 0 &&
67 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) {
68 __ stop("stop-at");
69 }
70 #endif
71
65 int locals_count = scope()->num_stack_slots(); 72 int locals_count = scope()->num_stack_slots();
66 73
67 __ Push(lr, fp, cp, r1); 74 __ Push(lr, fp, cp, r1);
68 if (locals_count > 0) { 75 if (locals_count > 0) {
69 // Load undefined value here, so the value is ready for the loop 76 // Load undefined value here, so the value is ready for the loop
70 // below. 77 // below.
71 __ LoadRoot(ip, Heap::kUndefinedValueRootIndex); 78 __ LoadRoot(ip, Heap::kUndefinedValueRootIndex);
72 } 79 }
73 // Adjust fp to point to caller's fp. 80 // Adjust fp to point to caller's fp.
74 __ add(fp, sp, Operand(2 * kPointerSize)); 81 __ add(fp, sp, Operand(2 * kPointerSize));
(...skipping 3308 matching lines...) Expand 10 before | Expand all | Expand 10 after
3383 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 3390 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
3384 __ add(pc, r1, Operand(masm_->CodeObject())); 3391 __ add(pc, r1, Operand(masm_->CodeObject()));
3385 } 3392 }
3386 3393
3387 3394
3388 #undef __ 3395 #undef __
3389 3396
3390 } } // namespace v8::internal 3397 } } // namespace v8::internal
3391 3398
3392 #endif // V8_TARGET_ARCH_ARM 3399 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698