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

Side by Side Diff: src/ast.cc

Issue 10121007: Allow more functions to be lazy compiled. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 8 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/ast.h ('k') | src/compiler.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 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 default: UNREACHABLE(); 148 default: UNREACHABLE();
149 } 149 }
150 return Token::ILLEGAL; 150 return Token::ILLEGAL;
151 } 151 }
152 152
153 153
154 bool FunctionLiteral::AllowsLazyCompilation() { 154 bool FunctionLiteral::AllowsLazyCompilation() {
155 return scope()->AllowsLazyCompilation(); 155 return scope()->AllowsLazyCompilation();
156 } 156 }
157 157
158 bool FunctionLiteral::AllowsLazyCompilationForNative() {
159 return scope()->AllowsLazyCompilationForNative();
160 }
158 161
159 int FunctionLiteral::start_position() const { 162 int FunctionLiteral::start_position() const {
160 return scope()->start_position(); 163 return scope()->start_position();
161 } 164 }
162 165
163 166
164 int FunctionLiteral::end_position() const { 167 int FunctionLiteral::end_position() const {
165 return scope()->end_position(); 168 return scope()->end_position();
166 } 169 }
167 170
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value()); 1102 OS::SNPrintF(buffer, "%d", Smi::cast(*handle_)->value());
1100 str = arr; 1103 str = arr;
1101 } else { 1104 } else {
1102 str = DoubleToCString(handle_->Number(), buffer); 1105 str = DoubleToCString(handle_->Number(), buffer);
1103 } 1106 }
1104 return FACTORY->NewStringFromAscii(CStrVector(str)); 1107 return FACTORY->NewStringFromAscii(CStrVector(str));
1105 } 1108 }
1106 1109
1107 1110
1108 } } // namespace v8::internal 1111 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698