| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 #if V8_TARGET_ARCH_IA32 | 81 #if V8_TARGET_ARCH_IA32 |
| 82 #include "ia32/codegen-ia32.h" | 82 #include "ia32/codegen-ia32.h" |
| 83 #elif V8_TARGET_ARCH_X64 | 83 #elif V8_TARGET_ARCH_X64 |
| 84 #include "x64/codegen-x64.h" | 84 #include "x64/codegen-x64.h" |
| 85 #elif V8_TARGET_ARCH_ARM | 85 #elif V8_TARGET_ARCH_ARM |
| 86 #include "arm/codegen-arm.h" | 86 #include "arm/codegen-arm.h" |
| 87 #endif | 87 #endif |
| 88 | 88 |
| 89 #include "register-allocator.h" | 89 #include "register-allocator.h" |
| 90 | 90 |
| 91 namespace v8 { namespace internal { | 91 namespace v8 { |
| 92 namespace internal { |
| 92 | 93 |
| 93 | 94 |
| 94 // Code generation can be nested. Code generation scopes form a stack | 95 // Code generation can be nested. Code generation scopes form a stack |
| 95 // of active code generators. | 96 // of active code generators. |
| 96 class CodeGeneratorScope BASE_EMBEDDED { | 97 class CodeGeneratorScope BASE_EMBEDDED { |
| 97 public: | 98 public: |
| 98 explicit CodeGeneratorScope(CodeGenerator* cgen) { | 99 explicit CodeGeneratorScope(CodeGenerator* cgen) { |
| 99 previous_ = top_; | 100 previous_ = top_; |
| 100 top_ = cgen; | 101 top_ = cgen; |
| 101 } | 102 } |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 PrintF("ArgumentsAccessStub (type %d)\n", type_); | 349 PrintF("ArgumentsAccessStub (type %d)\n", type_); |
| 349 } | 350 } |
| 350 #endif | 351 #endif |
| 351 }; | 352 }; |
| 352 | 353 |
| 353 | 354 |
| 354 } // namespace internal | 355 } // namespace internal |
| 355 } // namespace v8 | 356 } // namespace v8 |
| 356 | 357 |
| 357 #endif // V8_CODEGEN_H_ | 358 #endif // V8_CODEGEN_H_ |
| OLD | NEW |