OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 20 matching lines...) Expand all Loading... |
31 #include "codegen-inl.h" | 31 #include "codegen-inl.h" |
32 #include "debug.h" | 32 #include "debug.h" |
33 #include "oprofile-agent.h" | 33 #include "oprofile-agent.h" |
34 #include "prettyprinter.h" | 34 #include "prettyprinter.h" |
35 #include "register-allocator-inl.h" | 35 #include "register-allocator-inl.h" |
36 #include "rewriter.h" | 36 #include "rewriter.h" |
37 #include "runtime.h" | 37 #include "runtime.h" |
38 #include "scopeinfo.h" | 38 #include "scopeinfo.h" |
39 #include "stub-cache.h" | 39 #include "stub-cache.h" |
40 | 40 |
41 namespace v8 { namespace internal { | 41 namespace v8 { |
| 42 namespace internal { |
42 | 43 |
43 | 44 |
44 CodeGenerator* CodeGeneratorScope::top_ = NULL; | 45 CodeGenerator* CodeGeneratorScope::top_ = NULL; |
45 | 46 |
46 | 47 |
47 DeferredCode::DeferredCode(CodeGenerator* generator) | 48 DeferredCode::DeferredCode(CodeGenerator* generator) |
48 : generator_(generator), | 49 : generator_(generator), |
49 masm_(generator->masm()), | 50 masm_(generator->masm()), |
50 exit_(JumpTarget::BIDIRECTIONAL), | 51 exit_(JumpTarget::BIDIRECTIONAL), |
51 statement_position_(masm_->current_statement_position()), | 52 statement_position_(masm_->current_statement_position()), |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { | 633 void ArgumentsAccessStub::Generate(MacroAssembler* masm) { |
633 switch (type_) { | 634 switch (type_) { |
634 case READ_LENGTH: GenerateReadLength(masm); break; | 635 case READ_LENGTH: GenerateReadLength(masm); break; |
635 case READ_ELEMENT: GenerateReadElement(masm); break; | 636 case READ_ELEMENT: GenerateReadElement(masm); break; |
636 case NEW_OBJECT: GenerateNewObject(masm); break; | 637 case NEW_OBJECT: GenerateNewObject(masm); break; |
637 } | 638 } |
638 } | 639 } |
639 | 640 |
640 | 641 |
641 } } // namespace v8::internal | 642 } } // namespace v8::internal |
OLD | NEW |