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

Side by Side Diff: src/ia32/lithium-ia32.h

Issue 7739018: Inline functions with different contexts in the optimizing code generator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase to current tip-of-tree. Created 9 years, 3 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
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 V(ElementsKind) \ 88 V(ElementsKind) \
89 V(FixedArrayBaseLength) \ 89 V(FixedArrayBaseLength) \
90 V(FunctionLiteral) \ 90 V(FunctionLiteral) \
91 V(GetCachedArrayIndex) \ 91 V(GetCachedArrayIndex) \
92 V(GlobalObject) \ 92 V(GlobalObject) \
93 V(GlobalReceiver) \ 93 V(GlobalReceiver) \
94 V(Goto) \ 94 V(Goto) \
95 V(HasCachedArrayIndexAndBranch) \ 95 V(HasCachedArrayIndexAndBranch) \
96 V(HasInstanceTypeAndBranch) \ 96 V(HasInstanceTypeAndBranch) \
97 V(In) \ 97 V(In) \
98 V(InlinedContext) \
98 V(InstanceOf) \ 99 V(InstanceOf) \
99 V(InstanceOfKnownGlobal) \ 100 V(InstanceOfKnownGlobal) \
100 V(InstructionGap) \ 101 V(InstructionGap) \
101 V(Integer32ToDouble) \ 102 V(Integer32ToDouble) \
102 V(InvokeFunction) \ 103 V(InvokeFunction) \
103 V(IsConstructCallAndBranch) \ 104 V(IsConstructCallAndBranch) \
104 V(IsNullAndBranch) \ 105 V(IsNullAndBranch) \
105 V(IsObjectAndBranch) \ 106 V(IsObjectAndBranch) \
106 V(IsSmiAndBranch) \ 107 V(IsSmiAndBranch) \
107 V(IsUndetectableAndBranch) \ 108 V(IsUndetectableAndBranch) \
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") 1313 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function")
1313 }; 1314 };
1314 1315
1315 1316
1316 class LContext: public LTemplateInstruction<1, 0, 0> { 1317 class LContext: public LTemplateInstruction<1, 0, 0> {
1317 public: 1318 public:
1318 DECLARE_CONCRETE_INSTRUCTION(Context, "context") 1319 DECLARE_CONCRETE_INSTRUCTION(Context, "context")
1319 }; 1320 };
1320 1321
1321 1322
1323 class LInlinedContext: public LTemplateInstruction<1, 0, 0> {
1324 public:
1325 DECLARE_CONCRETE_INSTRUCTION(InlinedContext, "inlined-context")
1326 DECLARE_HYDROGEN_ACCESSOR(InlinedContext)
1327
1328 Handle<JSFunction> closure() const { return hydrogen()->closure(); }
1329 };
1330
1331
1322 class LOuterContext: public LTemplateInstruction<1, 1, 0> { 1332 class LOuterContext: public LTemplateInstruction<1, 1, 0> {
1323 public: 1333 public:
1324 explicit LOuterContext(LOperand* context) { 1334 explicit LOuterContext(LOperand* context) {
1325 inputs_[0] = context; 1335 inputs_[0] = context;
1326 } 1336 }
1327 1337
1328 DECLARE_CONCRETE_INSTRUCTION(OuterContext, "outer-context") 1338 DECLARE_CONCRETE_INSTRUCTION(OuterContext, "outer-context")
1329 1339
1330 LOperand* context() { return InputAt(0); } 1340 LOperand* context() { return InputAt(0); }
1331 }; 1341 };
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after
2286 2296
2287 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2297 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2288 }; 2298 };
2289 2299
2290 #undef DECLARE_HYDROGEN_ACCESSOR 2300 #undef DECLARE_HYDROGEN_ACCESSOR
2291 #undef DECLARE_CONCRETE_INSTRUCTION 2301 #undef DECLARE_CONCRETE_INSTRUCTION
2292 2302
2293 } } // namespace v8::internal 2303 } } // namespace v8::internal
2294 2304
2295 #endif // V8_IA32_LITHIUM_IA32_H_ 2305 #endif // V8_IA32_LITHIUM_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698