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 7362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7373 IteratePointers(v, kPropertiesOffset, kCodeEntryOffset); | 7373 IteratePointers(v, kPropertiesOffset, kCodeEntryOffset); |
7374 v->VisitCodeEntry(this->address() + kCodeEntryOffset); | 7374 v->VisitCodeEntry(this->address() + kCodeEntryOffset); |
7375 IteratePointers(v, kCodeEntryOffset + kPointerSize, object_size); | 7375 IteratePointers(v, kCodeEntryOffset + kPointerSize, object_size); |
7376 } | 7376 } |
7377 | 7377 |
7378 | 7378 |
7379 void JSFunction::MarkForLazyRecompilation() { | 7379 void JSFunction::MarkForLazyRecompilation() { |
7380 ASSERT(is_compiled() && !IsOptimized()); | 7380 ASSERT(is_compiled() && !IsOptimized()); |
7381 ASSERT(shared()->allows_lazy_compilation() || | 7381 ASSERT(shared()->allows_lazy_compilation() || |
7382 code()->optimizable()); | 7382 code()->optimizable()); |
7383 ASSERT(!shared()->optimization_disabled()); | |
7384 Builtins* builtins = GetIsolate()->builtins(); | 7383 Builtins* builtins = GetIsolate()->builtins(); |
7385 ReplaceCode(builtins->builtin(Builtins::kLazyRecompile)); | 7384 ReplaceCode(builtins->builtin(Builtins::kLazyRecompile)); |
7386 } | 7385 } |
7387 | 7386 |
7388 | 7387 |
7389 bool SharedFunctionInfo::EnsureCompiled(Handle<SharedFunctionInfo> shared, | 7388 bool SharedFunctionInfo::EnsureCompiled(Handle<SharedFunctionInfo> shared, |
7390 ClearExceptionFlag flag) { | 7389 ClearExceptionFlag flag) { |
7391 return shared->is_compiled() || CompileLazy(shared, flag); | 7390 return shared->is_compiled() || CompileLazy(shared, flag); |
7392 } | 7391 } |
7393 | 7392 |
(...skipping 5546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12940 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 12939 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
12941 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 12940 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
12942 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 12941 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
12943 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 12942 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
12944 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 12943 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
12945 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 12944 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
12946 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 12945 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
12947 } | 12946 } |
12948 | 12947 |
12949 } } // namespace v8::internal | 12948 } } // namespace v8::internal |
OLD | NEW |