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

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

Issue 9187005: Enable optimization of top-level code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: fixed problem with eval code, addressed comments Created 8 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // formal parameter count expected by the function. 106 // formal parameter count expected by the function.
107 // 107 //
108 // The live registers are: 108 // The live registers are:
109 // o rdi: the JS function object being called (i.e. ourselves) 109 // o rdi: the JS function object being called (i.e. ourselves)
110 // o rsi: our context 110 // o rsi: our context
111 // o rbp: our caller's frame pointer 111 // o rbp: our caller's frame pointer
112 // o rsp: stack pointer (pointing to return address) 112 // o rsp: stack pointer (pointing to return address)
113 // 113 //
114 // The function builds a JS frame. Please see JavaScriptFrameConstants in 114 // The function builds a JS frame. Please see JavaScriptFrameConstants in
115 // frames-x64.h for its layout. 115 // frames-x64.h for its layout.
116 void FullCodeGenerator::Generate(CompilationInfo* info) { 116 void FullCodeGenerator::Generate() {
117 ASSERT(info_ == NULL); 117 CompilationInfo* info = info_;
118 info_ = info;
119 scope_ = info->scope();
120 handler_table_ = 118 handler_table_ =
121 isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED); 119 isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED);
122 SetFunctionPosition(function()); 120 SetFunctionPosition(function());
123 Comment cmnt(masm_, "[ function compiled by full code generator"); 121 Comment cmnt(masm_, "[ function compiled by full code generator");
124 122
125 #ifdef DEBUG 123 #ifdef DEBUG
126 if (strlen(FLAG_stop_at) > 0 && 124 if (strlen(FLAG_stop_at) > 0 &&
127 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) { 125 info->function()->name()->IsEqualTo(CStrVector(FLAG_stop_at))) {
128 __ int3(); 126 __ int3();
129 } 127 }
(...skipping 4252 matching lines...) Expand 10 before | Expand all | Expand 10 after
4382 *context_length = 0; 4380 *context_length = 0;
4383 return previous_; 4381 return previous_;
4384 } 4382 }
4385 4383
4386 4384
4387 #undef __ 4385 #undef __
4388 4386
4389 } } // namespace v8::internal 4387 } } // namespace v8::internal
4390 4388
4391 #endif // V8_TARGET_ARCH_X64 4389 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/compiler.cc ('K') | « src/runtime-profiler.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698