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

Side by Side Diff: src/arm/codegen-arm.h

Issue 3169049: Remove dependence of code-stubs on codegen, the virtual frame code generator.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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 | « src/arm/code-stubs-arm.cc ('k') | src/arm/codegen-arm.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 10 matching lines...) Expand all
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 #ifndef V8_ARM_CODEGEN_ARM_H_ 28 #ifndef V8_ARM_CODEGEN_ARM_H_
29 #define V8_ARM_CODEGEN_ARM_H_ 29 #define V8_ARM_CODEGEN_ARM_H_
30 30
31 #include "ast.h"
32 #include "code-stubs-arm.h"
31 #include "ic-inl.h" 33 #include "ic-inl.h"
32 #include "ast.h"
33 34
34 namespace v8 { 35 namespace v8 {
35 namespace internal { 36 namespace internal {
36 37
37 // Forward declarations 38 // Forward declarations
38 class CompilationInfo; 39 class CompilationInfo;
39 class DeferredCode; 40 class DeferredCode;
40 class JumpTarget; 41 class JumpTarget;
41 class RegisterAllocator; 42 class RegisterAllocator;
42 class RegisterFile; 43 class RegisterFile;
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 if (index != kInvalidSlotNumber) { 264 if (index != kInvalidSlotNumber) {
264 TypeInfo previous_value = (*type_info_)[index]; 265 TypeInfo previous_value = (*type_info_)[index];
265 (*type_info_)[index] = info; 266 (*type_info_)[index] = info;
266 return previous_value; 267 return previous_value;
267 } 268 }
268 return TypeInfo::Unknown(); 269 return TypeInfo::Unknown();
269 } 270 }
270 271
271 void AddDeferred(DeferredCode* code) { deferred_.Add(code); } 272 void AddDeferred(DeferredCode* code) { deferred_.Add(code); }
272 273
273 static const int kUnknownIntValue = -1;
274
275 // If the name is an inline runtime function call return the number of 274 // If the name is an inline runtime function call return the number of
276 // expected arguments. Otherwise return -1. 275 // expected arguments. Otherwise return -1.
277 static int InlineRuntimeCallArgumentsCount(Handle<String> name); 276 static int InlineRuntimeCallArgumentsCount(Handle<String> name);
278 277
279 // Constants related to patching of inlined load/store. 278 // Constants related to patching of inlined load/store.
280 static int GetInlinedKeyedLoadInstructionsAfterPatch() { 279 static int GetInlinedKeyedLoadInstructionsAfterPatch() {
281 return FLAG_debug_code ? 32 : 13; 280 return FLAG_debug_code ? 32 : 13;
282 } 281 }
283 static const int kInlinedKeyedStoreInstructionsAfterPatch = 5; 282 static const int kInlinedKeyedStoreInstructionsAfterPatch = 5;
284 static int GetInlinedNamedStoreInstructionsAfterPatch() { 283 static int GetInlinedNamedStoreInstructionsAfterPatch() {
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 void LoadTypeofExpression(Expression* x); 412 void LoadTypeofExpression(Expression* x);
414 413
415 void ToBoolean(JumpTarget* true_target, JumpTarget* false_target); 414 void ToBoolean(JumpTarget* true_target, JumpTarget* false_target);
416 415
417 // Generate code that computes a shortcutting logical operation. 416 // Generate code that computes a shortcutting logical operation.
418 void GenerateLogicalBooleanOperation(BinaryOperation* node); 417 void GenerateLogicalBooleanOperation(BinaryOperation* node);
419 418
420 void GenericBinaryOperation(Token::Value op, 419 void GenericBinaryOperation(Token::Value op,
421 OverwriteMode overwrite_mode, 420 OverwriteMode overwrite_mode,
422 GenerateInlineSmi inline_smi, 421 GenerateInlineSmi inline_smi,
423 int known_rhs = kUnknownIntValue); 422 int known_rhs =
423 GenericBinaryOpStub::kUnknownIntValue);
424 void Comparison(Condition cc, 424 void Comparison(Condition cc,
425 Expression* left, 425 Expression* left,
426 Expression* right, 426 Expression* right,
427 bool strict = false); 427 bool strict = false);
428 428
429 void SmiOperation(Token::Value op, 429 void SmiOperation(Token::Value op,
430 Handle<Object> value, 430 Handle<Object> value,
431 bool reversed, 431 bool reversed,
432 OverwriteMode mode); 432 OverwriteMode mode);
433 433
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 friend class FullCodeGenerator; 611 friend class FullCodeGenerator;
612 friend class FullCodeGenSyntaxChecker; 612 friend class FullCodeGenSyntaxChecker;
613 613
614 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 614 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
615 }; 615 };
616 616
617 617
618 } } // namespace v8::internal 618 } } // namespace v8::internal
619 619
620 #endif // V8_ARM_CODEGEN_ARM_H_ 620 #endif // V8_ARM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698