| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 112 |
| 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 GetHandlerKind()); | |
| 124 Handle<Code> new_object = factory->NewCode( | 123 Handle<Code> new_object = factory->NewCode( |
| 125 desc, flags, masm.CodeObject(), NeedsImmovableCode()); | 124 desc, flags, masm.CodeObject(), NeedsImmovableCode()); |
| 126 return new_object; | 125 return new_object; |
| 127 } | 126 } |
| 128 | 127 |
| 129 | 128 |
| 130 void CodeStub::VerifyPlatformFeatures(Isolate* isolate) { | 129 void CodeStub::VerifyPlatformFeatures(Isolate* isolate) { |
| 131 ASSERT(CpuFeatures::VerifyCrossCompiling()); | 130 ASSERT(CpuFeatures::VerifyCrossCompiling()); |
| 132 } | 131 } |
| 133 | 132 |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 InstallDescriptor(isolate, &stub3); | 805 InstallDescriptor(isolate, &stub3); |
| 807 } | 806 } |
| 808 | 807 |
| 809 InternalArrayConstructorStub::InternalArrayConstructorStub( | 808 InternalArrayConstructorStub::InternalArrayConstructorStub( |
| 810 Isolate* isolate) { | 809 Isolate* isolate) { |
| 811 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 810 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 812 } | 811 } |
| 813 | 812 |
| 814 | 813 |
| 815 } } // namespace v8::internal | 814 } } // namespace v8::internal |
| OLD | NEW |