Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: src/objects.cc

Issue 11458011: Clear optimized code map during incremental marking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 8048 matching lines...) Expand 10 before | Expand all | Expand 10 after
8059 8059
8060 8060
8061 bool SharedFunctionInfo::CompileLazy(Handle<SharedFunctionInfo> shared, 8061 bool SharedFunctionInfo::CompileLazy(Handle<SharedFunctionInfo> shared,
8062 ClearExceptionFlag flag) { 8062 ClearExceptionFlag flag) {
8063 ASSERT(shared->allows_lazy_compilation_without_context()); 8063 ASSERT(shared->allows_lazy_compilation_without_context());
8064 CompilationInfoWithZone info(shared); 8064 CompilationInfoWithZone info(shared);
8065 return CompileLazyHelper(&info, flag); 8065 return CompileLazyHelper(&info, flag);
8066 } 8066 }
8067 8067
8068 8068
8069 void SharedFunctionInfo::ClearOptimizedCodeMap() {
8070 set_optimized_code_map(Smi::FromInt(0));
8071 }
8072
8073
8074 void SharedFunctionInfo::AddToOptimizedCodeMap( 8069 void SharedFunctionInfo::AddToOptimizedCodeMap(
8075 Handle<SharedFunctionInfo> shared, 8070 Handle<SharedFunctionInfo> shared,
8076 Handle<Context> native_context, 8071 Handle<Context> native_context,
8077 Handle<Code> code, 8072 Handle<Code> code,
8078 Handle<FixedArray> literals) { 8073 Handle<FixedArray> literals) {
8079 ASSERT(code->kind() == Code::OPTIMIZED_FUNCTION); 8074 ASSERT(code->kind() == Code::OPTIMIZED_FUNCTION);
8080 ASSERT(native_context->IsNativeContext()); 8075 ASSERT(native_context->IsNativeContext());
8081 STATIC_ASSERT(kEntryLength == 3); 8076 STATIC_ASSERT(kEntryLength == 3);
8082 Object* value = shared->optimized_code_map(); 8077 Object* value = shared->optimized_code_map();
8083 Handle<FixedArray> new_code_map; 8078 Handle<FixedArray> new_code_map;
(...skipping 5947 matching lines...) Expand 10 before | Expand all | Expand 10 after
14031 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); 14026 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER);
14032 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); 14027 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER);
14033 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); 14028 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER);
14034 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); 14029 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER);
14035 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); 14030 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER);
14036 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); 14031 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER);
14037 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); 14032 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER);
14038 } 14033 }
14039 14034
14040 } } // namespace v8::internal 14035 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698