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

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

Issue 12114054: Supporting AllocationSiteInfo for Nested arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing a port compile failure Created 7 years, 9 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/ast.h ('k') | src/handles.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 18 matching lines...) Expand all
29 #define V8_FULL_CODEGEN_H_ 29 #define V8_FULL_CODEGEN_H_
30 30
31 #include "v8.h" 31 #include "v8.h"
32 32
33 #include "allocation.h" 33 #include "allocation.h"
34 #include "ast.h" 34 #include "ast.h"
35 #include "code-stubs.h" 35 #include "code-stubs.h"
36 #include "codegen.h" 36 #include "codegen.h"
37 #include "compiler.h" 37 #include "compiler.h"
38 #include "data-flow.h" 38 #include "data-flow.h"
39 #include "scopes.h"
39 40
40 namespace v8 { 41 namespace v8 {
41 namespace internal { 42 namespace internal {
42 43
43 // Forward declarations. 44 // Forward declarations.
44 class JumpPatchSite; 45 class JumpPatchSite;
45 46
46 // AST node visitor which can tell whether a given statement will be breakable 47 // AST node visitor which can tell whether a given statement will be breakable
47 // when the code is compiled by the full compiler in the debugger. This means 48 // when the code is compiled by the full compiler in the debugger. This means
48 // that there will be an IC (load/store/call) in the code generated for the 49 // that there will be an IC (load/store/call) in the code generated for the
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 MacroAssembler* masm() { return masm_; } 574 MacroAssembler* masm() { return masm_; }
574 575
575 class ExpressionContext; 576 class ExpressionContext;
576 const ExpressionContext* context() { return context_; } 577 const ExpressionContext* context() { return context_; }
577 void set_new_context(const ExpressionContext* context) { context_ = context; } 578 void set_new_context(const ExpressionContext* context) { context_ = context; }
578 579
579 Handle<Script> script() { return info_->script(); } 580 Handle<Script> script() { return info_->script(); }
580 bool is_eval() { return info_->is_eval(); } 581 bool is_eval() { return info_->is_eval(); }
581 bool is_native() { return info_->is_native(); } 582 bool is_native() { return info_->is_native(); }
582 bool is_classic_mode() { return language_mode() == CLASSIC_MODE; } 583 bool is_classic_mode() { return language_mode() == CLASSIC_MODE; }
584 bool IsOneTimeCode() {
585 return loop_depth() == 0 && scope()->is_global_scope(); }
583 LanguageMode language_mode() { return function()->language_mode(); } 586 LanguageMode language_mode() { return function()->language_mode(); }
584 FunctionLiteral* function() { return info_->function(); } 587 FunctionLiteral* function() { return info_->function(); }
585 Scope* scope() { return scope_; } 588 Scope* scope() { return scope_; }
586 589
587 static Register result_register(); 590 static Register result_register();
588 static Register context_register(); 591 static Register context_register();
589 592
590 // Set fields in the stack frame. Offsets are the frame pointer relative 593 // Set fields in the stack frame. Offsets are the frame pointer relative
591 // offsets defined in, e.g., StandardFrameConstants. 594 // offsets defined in, e.g., StandardFrameConstants.
592 void StoreToFrameField(int frame_offset, Register value); 595 void StoreToFrameField(int frame_offset, Register value);
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 } 856 }
854 857
855 private: 858 private:
856 Zone* zone_; 859 Zone* zone_;
857 }; 860 };
858 861
859 862
860 } } // namespace v8::internal 863 } } // namespace v8::internal
861 864
862 #endif // V8_FULL_CODEGEN_H_ 865 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/ast.h ('k') | src/handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698