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

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

Issue 7374002: Refactor allocation policies. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/frames.cc ('k') | src/func-name-inferrer.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 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 TOS_REG 77 TOS_REG
78 }; 78 };
79 79
80 explicit FullCodeGenerator(MacroAssembler* masm) 80 explicit FullCodeGenerator(MacroAssembler* masm)
81 : masm_(masm), 81 : masm_(masm),
82 info_(NULL), 82 info_(NULL),
83 scope_(NULL), 83 scope_(NULL),
84 nesting_stack_(NULL), 84 nesting_stack_(NULL),
85 loop_depth_(0), 85 loop_depth_(0),
86 context_(NULL), 86 context_(NULL),
87 bailout_entries_(0), 87 bailout_entries_(masm->isolate()->zone(), 0),
88 stack_checks_(2), // There's always at least one. 88 // There's always at least one stack check.
89 stack_checks_(masm->isolate()->zone(), 2),
89 forward_bailout_stack_(NULL), 90 forward_bailout_stack_(NULL),
90 forward_bailout_pending_(NULL) { 91 forward_bailout_pending_(NULL) {
91 } 92 }
92 93
93 static bool MakeCode(CompilationInfo* info); 94 static bool MakeCode(CompilationInfo* info);
94 95
95 void Generate(CompilationInfo* info); 96 void Generate(CompilationInfo* info);
96 void PopulateDeoptimizationData(Handle<Code> code); 97 void PopulateDeoptimizationData(Handle<Code> code);
97 98
98 class StateField : public BitField<State, 0, 8> { }; 99 class StateField : public BitField<State, 0, 8> { };
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 760
760 friend class NestedStatement; 761 friend class NestedStatement;
761 762
762 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 763 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
763 }; 764 };
764 765
765 766
766 } } // namespace v8::internal 767 } } // namespace v8::internal
767 768
768 #endif // V8_FULL_CODEGEN_H_ 769 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/func-name-inferrer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698