OLD | NEW |
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 #elif V8_TARGET_ARCH_X64 | 74 #elif V8_TARGET_ARCH_X64 |
75 #include "x64/codegen-x64.h" | 75 #include "x64/codegen-x64.h" |
76 #elif V8_TARGET_ARCH_ARM | 76 #elif V8_TARGET_ARCH_ARM |
77 #include "arm/codegen-arm.h" | 77 #include "arm/codegen-arm.h" |
78 #elif V8_TARGET_ARCH_MIPS | 78 #elif V8_TARGET_ARCH_MIPS |
79 #include "mips/codegen-mips.h" | 79 #include "mips/codegen-mips.h" |
80 #else | 80 #else |
81 #error Unsupported target architecture. | 81 #error Unsupported target architecture. |
82 #endif | 82 #endif |
83 | 83 |
| 84 namespace v8 { |
| 85 namespace internal { |
| 86 |
| 87 class ElementsTransitionGenerator : public AllStatic { |
| 88 public: |
| 89 static void GenerateSmiOnlyToObject(MacroAssembler* masm); |
| 90 static void GenerateSmiOnlyToDouble(MacroAssembler* masm, Label* fail); |
| 91 static void GenerateDoubleToObject(MacroAssembler* masm, Label* fail); |
| 92 |
| 93 private: |
| 94 DISALLOW_COPY_AND_ASSIGN(ElementsTransitionGenerator); |
| 95 }; |
| 96 |
| 97 } } // namespace v8::internal |
| 98 |
84 #endif // V8_CODEGEN_H_ | 99 #endif // V8_CODEGEN_H_ |
OLD | NEW |