OLD | NEW |
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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // Create the code object. | 113 // Create the code object. |
114 CodeDesc desc; | 114 CodeDesc desc; |
115 masm.GetCode(&desc); | 115 masm.GetCode(&desc); |
116 | 116 |
117 // Copy the generated code into a heap object. | 117 // Copy the generated code into a heap object. |
118 Code::Flags flags = Code::ComputeFlags( | 118 Code::Flags flags = Code::ComputeFlags( |
119 GetCodeKind(), | 119 GetCodeKind(), |
120 GetICState(), | 120 GetICState(), |
121 GetExtraICState(), | 121 GetExtraICState(), |
122 GetStubType(), | 122 GetStubType(), |
123 GetStubFlags()); | 123 GetHandlerKind()); |
124 Handle<Code> new_object = factory->NewCode( | 124 Handle<Code> new_object = factory->NewCode( |
125 desc, flags, masm.CodeObject(), NeedsImmovableCode()); | 125 desc, flags, masm.CodeObject(), NeedsImmovableCode()); |
126 return new_object; | 126 return new_object; |
127 } | 127 } |
128 | 128 |
129 | 129 |
130 void CodeStub::VerifyPlatformFeatures(Isolate* isolate) { | 130 void CodeStub::VerifyPlatformFeatures(Isolate* isolate) { |
131 ASSERT(CpuFeatures::VerifyCrossCompiling()); | 131 ASSERT(CpuFeatures::VerifyCrossCompiling()); |
132 } | 132 } |
133 | 133 |
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 InstallDescriptor(isolate, &stub3); | 806 InstallDescriptor(isolate, &stub3); |
807 } | 807 } |
808 | 808 |
809 InternalArrayConstructorStub::InternalArrayConstructorStub( | 809 InternalArrayConstructorStub::InternalArrayConstructorStub( |
810 Isolate* isolate) { | 810 Isolate* isolate) { |
811 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 811 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
812 } | 812 } |
813 | 813 |
814 | 814 |
815 } } // namespace v8::internal | 815 } } // namespace v8::internal |
OLD | NEW |