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

Side by Side Diff: src/objects.cc

Issue 6597029: [Isolates] Merge r 6300:6500 from bleeding_edge to isolates. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 years, 10 months 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-debug.cc » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 5473 matching lines...) Expand 10 before | Expand all | Expand 10 after
5484 // Iterate over all fields in the body but take care in dealing with 5484 // Iterate over all fields in the body but take care in dealing with
5485 // the code entry. 5485 // the code entry.
5486 IteratePointers(v, kPropertiesOffset, kCodeEntryOffset); 5486 IteratePointers(v, kPropertiesOffset, kCodeEntryOffset);
5487 v->VisitCodeEntry(this->address() + kCodeEntryOffset); 5487 v->VisitCodeEntry(this->address() + kCodeEntryOffset);
5488 IteratePointers(v, kCodeEntryOffset + kPointerSize, object_size); 5488 IteratePointers(v, kCodeEntryOffset + kPointerSize, object_size);
5489 } 5489 }
5490 5490
5491 5491
5492 void JSFunction::MarkForLazyRecompilation() { 5492 void JSFunction::MarkForLazyRecompilation() {
5493 ASSERT(is_compiled() && !IsOptimized()); 5493 ASSERT(is_compiled() && !IsOptimized());
5494 ASSERT(shared()->allows_lazy_compilation()); 5494 ASSERT(shared()->allows_lazy_compilation() ||
5495 code()->optimizable());
5495 Builtins* builtins = GetIsolate()->builtins(); 5496 Builtins* builtins = GetIsolate()->builtins();
5496 ReplaceCode(builtins->builtin(Builtins::LazyRecompile)); 5497 ReplaceCode(builtins->builtin(Builtins::LazyRecompile));
5497 } 5498 }
5498 5499
5499 5500
5500 uint32_t JSFunction::SourceHash() { 5501 uint32_t JSFunction::SourceHash() {
5501 uint32_t hash = 0; 5502 uint32_t hash = 0;
5502 Object* script = shared()->script(); 5503 Object* script = shared()->script();
5503 if (!script->IsUndefined()) { 5504 if (!script->IsUndefined()) {
5504 Object* source = Script::cast(script)->source(); 5505 Object* source = Script::cast(script)->source();
(...skipping 4460 matching lines...) Expand 10 before | Expand all | Expand 10 after
9965 if (break_point_objects()->IsUndefined()) return 0; 9966 if (break_point_objects()->IsUndefined()) return 0;
9966 // Single beak point. 9967 // Single beak point.
9967 if (!break_point_objects()->IsFixedArray()) return 1; 9968 if (!break_point_objects()->IsFixedArray()) return 1;
9968 // Multiple break points. 9969 // Multiple break points.
9969 return FixedArray::cast(break_point_objects())->length(); 9970 return FixedArray::cast(break_point_objects())->length();
9970 } 9971 }
9971 #endif 9972 #endif
9972 9973
9973 9974
9974 } } // namespace v8::internal 9975 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698