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

Side by Side Diff: src/arm/lithium-arm.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
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | src/arm/lithium-arm.cc » ('J')
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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 V(ElementsKind) \ 94 V(ElementsKind) \
95 V(FixedArrayBaseLength) \ 95 V(FixedArrayBaseLength) \
96 V(FunctionLiteral) \ 96 V(FunctionLiteral) \
97 V(GetCachedArrayIndex) \ 97 V(GetCachedArrayIndex) \
98 V(GlobalObject) \ 98 V(GlobalObject) \
99 V(GlobalReceiver) \ 99 V(GlobalReceiver) \
100 V(Goto) \ 100 V(Goto) \
101 V(HasCachedArrayIndexAndBranch) \ 101 V(HasCachedArrayIndexAndBranch) \
102 V(HasInstanceTypeAndBranch) \ 102 V(HasInstanceTypeAndBranch) \
103 V(In) \ 103 V(In) \
104 V(InlinedContext) \
104 V(InstanceOf) \ 105 V(InstanceOf) \
105 V(InstanceOfKnownGlobal) \ 106 V(InstanceOfKnownGlobal) \
106 V(InstructionGap) \ 107 V(InstructionGap) \
107 V(Integer32ToDouble) \ 108 V(Integer32ToDouble) \
108 V(InvokeFunction) \ 109 V(InvokeFunction) \
109 V(IsConstructCallAndBranch) \ 110 V(IsConstructCallAndBranch) \
110 V(IsNullAndBranch) \ 111 V(IsNullAndBranch) \
111 V(IsObjectAndBranch) \ 112 V(IsObjectAndBranch) \
112 V(IsSmiAndBranch) \ 113 V(IsSmiAndBranch) \
113 V(IsUndetectableAndBranch) \ 114 V(IsUndetectableAndBranch) \
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") 1280 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function")
1280 }; 1281 };
1281 1282
1282 1283
1283 class LContext: public LTemplateInstruction<1, 0, 0> { 1284 class LContext: public LTemplateInstruction<1, 0, 0> {
1284 public: 1285 public:
1285 DECLARE_CONCRETE_INSTRUCTION(Context, "context") 1286 DECLARE_CONCRETE_INSTRUCTION(Context, "context")
1286 }; 1287 };
1287 1288
1288 1289
1290 class LInlinedContext: public LTemplateInstruction<1, 0, 0> {
1291 public:
1292 DECLARE_CONCRETE_INSTRUCTION(InlinedContext, "inlined-context")
1293 DECLARE_HYDROGEN_ACCESSOR(InlinedContext)
1294
1295 Handle<JSFunction> closure() const { return hydrogen()->closure(); }
1296 };
1297
1298
1289 class LOuterContext: public LTemplateInstruction<1, 1, 0> { 1299 class LOuterContext: public LTemplateInstruction<1, 1, 0> {
1290 public: 1300 public:
1291 explicit LOuterContext(LOperand* context) { 1301 explicit LOuterContext(LOperand* context) {
1292 inputs_[0] = context; 1302 inputs_[0] = context;
1293 } 1303 }
1294 1304
1295 DECLARE_CONCRETE_INSTRUCTION(OuterContext, "outer-context") 1305 DECLARE_CONCRETE_INSTRUCTION(OuterContext, "outer-context")
1296 1306
1297 LOperand* context() { return InputAt(0); } 1307 LOperand* context() { return InputAt(0); }
1298 }; 1308 };
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
2186 2196
2187 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2197 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2188 }; 2198 };
2189 2199
2190 #undef DECLARE_HYDROGEN_ACCESSOR 2200 #undef DECLARE_HYDROGEN_ACCESSOR
2191 #undef DECLARE_CONCRETE_INSTRUCTION 2201 #undef DECLARE_CONCRETE_INSTRUCTION
2192 2202
2193 } } // namespace v8::internal 2203 } } // namespace v8::internal
2194 2204
2195 #endif // V8_ARM_LITHIUM_ARM_H_ 2205 #endif // V8_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.cc » ('j') | src/arm/lithium-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698