| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 // This flag is ored with a valid offset from the frame pointer, so | 222 // This flag is ored with a valid offset from the frame pointer, so |
| 223 // it should fit in the low zero bits of a valid offset. | 223 // it should fit in the low zero bits of a valid offset. |
| 224 static const int kSyncedFlag = 2; | 224 static const int kSyncedFlag = 2; |
| 225 | 225 |
| 226 int statement_position_; | 226 int statement_position_; |
| 227 int position_; | 227 int position_; |
| 228 | 228 |
| 229 Label entry_label_; | 229 Label entry_label_; |
| 230 Label exit_label_; | 230 Label exit_label_; |
| 231 | 231 |
| 232 int registers_[RegisterAllocator::kNumRegisters]; | 232 // C++ doesn't allow zero length arrays, so we make the array length 1 even |
| 233 // if we don't need it. |
| 234 static const int kRegistersArrayLength = |
| 235 (RegisterAllocator::kNumRegisters == 0) ? |
| 236 1 : RegisterAllocator::kNumRegisters; |
| 237 int registers_[kRegistersArrayLength]; |
| 233 | 238 |
| 234 #ifdef DEBUG | 239 #ifdef DEBUG |
| 235 const char* comment_; | 240 const char* comment_; |
| 236 #endif | 241 #endif |
| 237 DISALLOW_COPY_AND_ASSIGN(DeferredCode); | 242 DISALLOW_COPY_AND_ASSIGN(DeferredCode); |
| 238 }; | 243 }; |
| 239 | 244 |
| 240 class StackCheckStub : public CodeStub { | 245 class StackCheckStub : public CodeStub { |
| 241 public: | 246 public: |
| 242 StackCheckStub() { } | 247 StackCheckStub() { } |
| (...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 private: | 604 private: |
| 600 Major MajorKey() { return ToBoolean; } | 605 Major MajorKey() { return ToBoolean; } |
| 601 int MinorKey() { return 0; } | 606 int MinorKey() { return 0; } |
| 602 }; | 607 }; |
| 603 | 608 |
| 604 | 609 |
| 605 } // namespace internal | 610 } // namespace internal |
| 606 } // namespace v8 | 611 } // namespace v8 |
| 607 | 612 |
| 608 #endif // V8_CODEGEN_H_ | 613 #endif // V8_CODEGEN_H_ |
| OLD | NEW |