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

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

Issue 131663003: Make the strict-mode calling convention for contextual calls the default one. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix arm port Created 6 years, 11 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/hydrogen.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 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 1975 matching lines...) Expand 10 before | Expand all | Expand 10 after
1986 1986
1987 class HEnterInlined V8_FINAL : public HTemplateInstruction<0> { 1987 class HEnterInlined V8_FINAL : public HTemplateInstruction<0> {
1988 public: 1988 public:
1989 static HEnterInlined* New(Zone* zone, 1989 static HEnterInlined* New(Zone* zone,
1990 HValue* context, 1990 HValue* context,
1991 Handle<JSFunction> closure, 1991 Handle<JSFunction> closure,
1992 int arguments_count, 1992 int arguments_count,
1993 FunctionLiteral* function, 1993 FunctionLiteral* function,
1994 InliningKind inlining_kind, 1994 InliningKind inlining_kind,
1995 Variable* arguments_var, 1995 Variable* arguments_var,
1996 HArgumentsObject* arguments_object, 1996 HArgumentsObject* arguments_object) {
1997 bool undefined_receiver) {
1998 return new(zone) HEnterInlined(closure, arguments_count, function, 1997 return new(zone) HEnterInlined(closure, arguments_count, function,
1999 inlining_kind, arguments_var, 1998 inlining_kind, arguments_var,
2000 arguments_object, undefined_receiver, zone); 1999 arguments_object, zone);
2001 } 2000 }
2002 2001
2003 void RegisterReturnTarget(HBasicBlock* return_target, Zone* zone); 2002 void RegisterReturnTarget(HBasicBlock* return_target, Zone* zone);
2004 ZoneList<HBasicBlock*>* return_targets() { return &return_targets_; } 2003 ZoneList<HBasicBlock*>* return_targets() { return &return_targets_; }
2005 2004
2006 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 2005 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
2007 2006
2008 Handle<JSFunction> closure() const { return closure_; } 2007 Handle<JSFunction> closure() const { return closure_; }
2009 int arguments_count() const { return arguments_count_; } 2008 int arguments_count() const { return arguments_count_; }
2010 bool arguments_pushed() const { return arguments_pushed_; } 2009 bool arguments_pushed() const { return arguments_pushed_; }
2011 void set_arguments_pushed() { arguments_pushed_ = true; } 2010 void set_arguments_pushed() { arguments_pushed_ = true; }
2012 FunctionLiteral* function() const { return function_; } 2011 FunctionLiteral* function() const { return function_; }
2013 InliningKind inlining_kind() const { return inlining_kind_; } 2012 InliningKind inlining_kind() const { return inlining_kind_; }
2014 bool undefined_receiver() const { return undefined_receiver_; }
2015 2013
2016 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 2014 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
2017 return Representation::None(); 2015 return Representation::None();
2018 } 2016 }
2019 2017
2020 Variable* arguments_var() { return arguments_var_; } 2018 Variable* arguments_var() { return arguments_var_; }
2021 HArgumentsObject* arguments_object() { return arguments_object_; } 2019 HArgumentsObject* arguments_object() { return arguments_object_; }
2022 2020
2023 DECLARE_CONCRETE_INSTRUCTION(EnterInlined) 2021 DECLARE_CONCRETE_INSTRUCTION(EnterInlined)
2024 2022
2025 private: 2023 private:
2026 HEnterInlined(Handle<JSFunction> closure, 2024 HEnterInlined(Handle<JSFunction> closure,
2027 int arguments_count, 2025 int arguments_count,
2028 FunctionLiteral* function, 2026 FunctionLiteral* function,
2029 InliningKind inlining_kind, 2027 InliningKind inlining_kind,
2030 Variable* arguments_var, 2028 Variable* arguments_var,
2031 HArgumentsObject* arguments_object, 2029 HArgumentsObject* arguments_object,
2032 bool undefined_receiver,
2033 Zone* zone) 2030 Zone* zone)
2034 : closure_(closure), 2031 : closure_(closure),
2035 arguments_count_(arguments_count), 2032 arguments_count_(arguments_count),
2036 arguments_pushed_(false), 2033 arguments_pushed_(false),
2037 function_(function), 2034 function_(function),
2038 inlining_kind_(inlining_kind), 2035 inlining_kind_(inlining_kind),
2039 arguments_var_(arguments_var), 2036 arguments_var_(arguments_var),
2040 arguments_object_(arguments_object), 2037 arguments_object_(arguments_object),
2041 undefined_receiver_(undefined_receiver),
2042 return_targets_(2, zone) { 2038 return_targets_(2, zone) {
2043 } 2039 }
2044 2040
2045 Handle<JSFunction> closure_; 2041 Handle<JSFunction> closure_;
2046 int arguments_count_; 2042 int arguments_count_;
2047 bool arguments_pushed_; 2043 bool arguments_pushed_;
2048 FunctionLiteral* function_; 2044 FunctionLiteral* function_;
2049 InliningKind inlining_kind_; 2045 InliningKind inlining_kind_;
2050 Variable* arguments_var_; 2046 Variable* arguments_var_;
2051 HArgumentsObject* arguments_object_; 2047 HArgumentsObject* arguments_object_;
2052 bool undefined_receiver_;
2053 ZoneList<HBasicBlock*> return_targets_; 2048 ZoneList<HBasicBlock*> return_targets_;
2054 }; 2049 };
2055 2050
2056 2051
2057 class HLeaveInlined V8_FINAL : public HTemplateInstruction<0> { 2052 class HLeaveInlined V8_FINAL : public HTemplateInstruction<0> {
2058 public: 2053 public:
2059 HLeaveInlined(HEnterInlined* entry, 2054 HLeaveInlined(HEnterInlined* entry,
2060 int drop_count) 2055 int drop_count)
2061 : entry_(entry), 2056 : entry_(entry),
2062 drop_count_(drop_count) { } 2057 drop_count_(drop_count) { }
(...skipping 5522 matching lines...) Expand 10 before | Expand all | Expand 10 after
7585 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7580 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7586 }; 7581 };
7587 7582
7588 7583
7589 #undef DECLARE_INSTRUCTION 7584 #undef DECLARE_INSTRUCTION
7590 #undef DECLARE_CONCRETE_INSTRUCTION 7585 #undef DECLARE_CONCRETE_INSTRUCTION
7591 7586
7592 } } // namespace v8::internal 7587 } } // namespace v8::internal
7593 7588
7594 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7589 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698