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

Side by Side Diff: src/hydrogen-instructions.h

Issue 6717018: Introduce accessors on builtins instance (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix tests and lint. Created 9 years, 9 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/heap.cc ('k') | src/ia32/builtins-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1239 1239
1240 class HCallConstantFunction: public HCall<0> { 1240 class HCallConstantFunction: public HCall<0> {
1241 public: 1241 public:
1242 HCallConstantFunction(Handle<JSFunction> function, int argument_count) 1242 HCallConstantFunction(Handle<JSFunction> function, int argument_count)
1243 : HCall<0>(argument_count), function_(function) { } 1243 : HCall<0>(argument_count), function_(function) { }
1244 1244
1245 Handle<JSFunction> function() const { return function_; } 1245 Handle<JSFunction> function() const { return function_; }
1246 1246
1247 bool IsApplyFunction() const { 1247 bool IsApplyFunction() const {
1248 return function_->code() == 1248 return function_->code() ==
1249 Isolate::Current()->builtins()->builtin(Builtins::FunctionApply); 1249 Isolate::Current()->builtins()->builtin(Builtins::kFunctionApply);
1250 } 1250 }
1251 1251
1252 virtual void PrintDataTo(StringStream* stream); 1252 virtual void PrintDataTo(StringStream* stream);
1253 1253
1254 virtual Representation RequiredInputRepresentation(int index) const { 1254 virtual Representation RequiredInputRepresentation(int index) const {
1255 return Representation::None(); 1255 return Representation::None();
1256 } 1256 }
1257 1257
1258 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call_constant_function") 1258 DECLARE_CONCRETE_INSTRUCTION(CallConstantFunction, "call_constant_function")
1259 1259
(...skipping 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after
3521 HValue* object() { return left(); } 3521 HValue* object() { return left(); }
3522 HValue* key() { return right(); } 3522 HValue* key() { return right(); }
3523 }; 3523 };
3524 3524
3525 #undef DECLARE_INSTRUCTION 3525 #undef DECLARE_INSTRUCTION
3526 #undef DECLARE_CONCRETE_INSTRUCTION 3526 #undef DECLARE_CONCRETE_INSTRUCTION
3527 3527
3528 } } // namespace v8::internal 3528 } } // namespace v8::internal
3529 3529
3530 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 3530 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698