| 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 8055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8066 | 8066 |
| 8067 | 8067 |
| 8068 bool SharedFunctionInfo::CompileLazy(Handle<SharedFunctionInfo> shared, | 8068 bool SharedFunctionInfo::CompileLazy(Handle<SharedFunctionInfo> shared, |
| 8069 ClearExceptionFlag flag) { | 8069 ClearExceptionFlag flag) { |
| 8070 ASSERT(shared->allows_lazy_compilation_without_context()); | 8070 ASSERT(shared->allows_lazy_compilation_without_context()); |
| 8071 CompilationInfoWithZone info(shared); | 8071 CompilationInfoWithZone info(shared); |
| 8072 return CompileLazyHelper(&info, flag); | 8072 return CompileLazyHelper(&info, flag); |
| 8073 } | 8073 } |
| 8074 | 8074 |
| 8075 | 8075 |
| 8076 void SharedFunctionInfo::ClearOptimizedCodeMap() { | |
| 8077 set_optimized_code_map(Smi::FromInt(0)); | |
| 8078 } | |
| 8079 | |
| 8080 | |
| 8081 void SharedFunctionInfo::AddToOptimizedCodeMap( | 8076 void SharedFunctionInfo::AddToOptimizedCodeMap( |
| 8082 Handle<SharedFunctionInfo> shared, | 8077 Handle<SharedFunctionInfo> shared, |
| 8083 Handle<Context> native_context, | 8078 Handle<Context> native_context, |
| 8084 Handle<Code> code, | 8079 Handle<Code> code, |
| 8085 Handle<FixedArray> literals) { | 8080 Handle<FixedArray> literals) { |
| 8086 ASSERT(code->kind() == Code::OPTIMIZED_FUNCTION); | 8081 ASSERT(code->kind() == Code::OPTIMIZED_FUNCTION); |
| 8087 ASSERT(native_context->IsNativeContext()); | 8082 ASSERT(native_context->IsNativeContext()); |
| 8088 STATIC_ASSERT(kEntryLength == 3); | 8083 STATIC_ASSERT(kEntryLength == 3); |
| 8089 Object* value = shared->optimized_code_map(); | 8084 Object* value = shared->optimized_code_map(); |
| 8090 Handle<FixedArray> new_code_map; | 8085 Handle<FixedArray> new_code_map; |
| (...skipping 5943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14034 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 14029 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
| 14035 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 14030 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
| 14036 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 14031 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
| 14037 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 14032 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
| 14038 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 14033 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
| 14039 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 14034 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
| 14040 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 14035 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
| 14041 } | 14036 } |
| 14042 | 14037 |
| 14043 } } // namespace v8::internal | 14038 } } // namespace v8::internal |
| OLD | NEW |