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

Side by Side Diff: src/compiler.cc

Issue 460013: Merge revisions r3393 - r3394 to trunk... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years 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/bootstrapper.cc ('k') | src/factory.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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 #ifdef ENABLE_DEBUGGER_SUPPORT 169 #ifdef ENABLE_DEBUGGER_SUPPORT
170 bool is_json = (validate == Compiler::VALIDATE_JSON); 170 bool is_json = (validate == Compiler::VALIDATE_JSON);
171 if (is_eval || is_json) { 171 if (is_eval || is_json) {
172 script->set_compilation_type( 172 script->set_compilation_type(
173 is_json ? Smi::FromInt(Script::COMPILATION_TYPE_JSON) : 173 is_json ? Smi::FromInt(Script::COMPILATION_TYPE_JSON) :
174 Smi::FromInt(Script::COMPILATION_TYPE_EVAL)); 174 Smi::FromInt(Script::COMPILATION_TYPE_EVAL));
175 // For eval scripts add information on the function from which eval was 175 // For eval scripts add information on the function from which eval was
176 // called. 176 // called.
177 if (is_eval) { 177 if (is_eval) {
178 JavaScriptFrameIterator it; 178 JavaScriptFrameIterator it;
179 script->set_eval_from_function(it.frame()->function()); 179 script->set_eval_from_shared(
180 JSFunction::cast(it.frame()->function())->shared());
180 int offset = static_cast<int>( 181 int offset = static_cast<int>(
181 it.frame()->pc() - it.frame()->code()->instruction_start()); 182 it.frame()->pc() - it.frame()->code()->instruction_start());
182 script->set_eval_from_instructions_offset(Smi::FromInt(offset)); 183 script->set_eval_from_instructions_offset(Smi::FromInt(offset));
183 } 184 }
184 } 185 }
185 186
186 // Notify debugger 187 // Notify debugger
187 Debugger::OnBeforeCompile(script); 188 Debugger::OnBeforeCompile(script);
188 #endif 189 #endif
189 190
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 1104
1104 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { 1105 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) {
1105 BAILOUT("ThisFunction"); 1106 BAILOUT("ThisFunction");
1106 } 1107 }
1107 1108
1108 #undef BAILOUT 1109 #undef BAILOUT
1109 #undef CHECK_BAILOUT 1110 #undef CHECK_BAILOUT
1110 1111
1111 1112
1112 } } // namespace v8::internal 1113 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698