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

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

Issue 6879081: Added type recording for unary minus and unary bitwise negation. Note that the (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Hopefully final version of this patch... Created 9 years, 8 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 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 void StoreToFrameField(int frame_offset, Register value); 524 void StoreToFrameField(int frame_offset, Register value);
525 525
526 // Load a value from the current context. Indices are defined as an enum 526 // Load a value from the current context. Indices are defined as an enum
527 // in v8::internal::Context. 527 // in v8::internal::Context.
528 void LoadContextField(Register dst, int context_index); 528 void LoadContextField(Register dst, int context_index);
529 529
530 // AST node visit functions. 530 // AST node visit functions.
531 #define DECLARE_VISIT(type) virtual void Visit##type(type* node); 531 #define DECLARE_VISIT(type) virtual void Visit##type(type* node);
532 AST_NODE_LIST(DECLARE_VISIT) 532 AST_NODE_LIST(DECLARE_VISIT)
533 #undef DECLARE_VISIT 533 #undef DECLARE_VISIT
534
535 void EmitUnaryOperation(UnaryOperation* expr, const char* comment);
536
534 // Handles the shortcutted logical binary operations in VisitBinaryOperation. 537 // Handles the shortcutted logical binary operations in VisitBinaryOperation.
535 void EmitLogicalOperation(BinaryOperation* expr); 538 void EmitLogicalOperation(BinaryOperation* expr);
536 539
537 void VisitForTypeofValue(Expression* expr); 540 void VisitForTypeofValue(Expression* expr);
538 541
539 struct BailoutEntry { 542 struct BailoutEntry {
540 unsigned id; 543 unsigned id;
541 unsigned pc_and_state; 544 unsigned pc_and_state;
542 }; 545 };
543 546
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 747
745 friend class NestedStatement; 748 friend class NestedStatement;
746 749
747 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 750 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
748 }; 751 };
749 752
750 753
751 } } // namespace v8::internal 754 } } // namespace v8::internal
752 755
753 #endif // V8_FULL_CODEGEN_H_ 756 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/ia32/code-stubs-ia32.h » ('j') | src/ia32/code-stubs-ia32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698