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

Side by Side Diff: src/ast.h

Issue 437081: Added fast compiler support for calling JS runtime functions.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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/arm/fast-codegen-arm.cc ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after
1073 CallRuntime(Handle<String> name, 1073 CallRuntime(Handle<String> name,
1074 Runtime::Function* function, 1074 Runtime::Function* function,
1075 ZoneList<Expression*>* arguments) 1075 ZoneList<Expression*>* arguments)
1076 : name_(name), function_(function), arguments_(arguments) { } 1076 : name_(name), function_(function), arguments_(arguments) { }
1077 1077
1078 virtual void Accept(AstVisitor* v); 1078 virtual void Accept(AstVisitor* v);
1079 1079
1080 Handle<String> name() const { return name_; } 1080 Handle<String> name() const { return name_; }
1081 Runtime::Function* function() const { return function_; } 1081 Runtime::Function* function() const { return function_; }
1082 ZoneList<Expression*>* arguments() const { return arguments_; } 1082 ZoneList<Expression*>* arguments() const { return arguments_; }
1083 bool is_jsruntime() const { return function_ == NULL; }
1083 1084
1084 private: 1085 private:
1085 Handle<String> name_; 1086 Handle<String> name_;
1086 Runtime::Function* function_; 1087 Runtime::Function* function_;
1087 ZoneList<Expression*>* arguments_; 1088 ZoneList<Expression*>* arguments_;
1088 }; 1089 };
1089 1090
1090 1091
1091 class UnaryOperation: public Expression { 1092 class UnaryOperation: public Expression {
1092 public: 1093 public:
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 #undef DEF_VISIT 1781 #undef DEF_VISIT
1781 1782
1782 private: 1783 private:
1783 bool stack_overflow_; 1784 bool stack_overflow_;
1784 }; 1785 };
1785 1786
1786 1787
1787 } } // namespace v8::internal 1788 } } // namespace v8::internal
1788 1789
1789 #endif // V8_AST_H_ 1790 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/arm/fast-codegen-arm.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698