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

Side by Side Diff: src/hydrogen.h

Issue 16641002: Fix parallel recompilation wrt initial object/array map dependency. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-codegen-ia32.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 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 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 395
396 void MarkRecursive() { 396 void MarkRecursive() {
397 is_recursive_ = true; 397 is_recursive_ = true;
398 } 398 }
399 399
400 bool is_recursive() const { 400 bool is_recursive() const {
401 return is_recursive_; 401 return is_recursive_;
402 } 402 }
403 403
404 void MarkDependsOnEmptyArrayProtoElements() { 404 void MarkDependsOnEmptyArrayProtoElements() {
405 // Add map dependency if not already added.
406 if (depends_on_empty_array_proto_elements_) return;
407 isolate()->initial_object_prototype()->map()->AddDependentCompilationInfo(
408 DependentCode::kElementsCantBeAddedGroup, info());
409 isolate()->initial_array_prototype()->map()->AddDependentCompilationInfo(
410 DependentCode::kElementsCantBeAddedGroup, info());
405 depends_on_empty_array_proto_elements_ = true; 411 depends_on_empty_array_proto_elements_ = true;
406 } 412 }
407 413
408 bool depends_on_empty_array_proto_elements() {
409 return depends_on_empty_array_proto_elements_;
410 }
411
412 void RecordUint32Instruction(HInstruction* instr) { 414 void RecordUint32Instruction(HInstruction* instr) {
413 if (uint32_instructions_ == NULL) { 415 if (uint32_instructions_ == NULL) {
414 uint32_instructions_ = new(zone()) ZoneList<HInstruction*>(4, zone()); 416 uint32_instructions_ = new(zone()) ZoneList<HInstruction*>(4, zone());
415 } 417 }
416 uint32_instructions_->Add(instr, zone()); 418 uint32_instructions_->Add(instr, zone());
417 } 419 }
418 420
419 private: 421 private:
420 HConstant* GetConstant(SetOncePointer<HConstant>* pointer, 422 HConstant* GetConstant(SetOncePointer<HConstant>* pointer,
421 int32_t integer_value); 423 int32_t integer_value);
(...skipping 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2022 EmbeddedVector<char, 64> filename_; 2024 EmbeddedVector<char, 64> filename_;
2023 HeapStringAllocator string_allocator_; 2025 HeapStringAllocator string_allocator_;
2024 StringStream trace_; 2026 StringStream trace_;
2025 int indent_; 2027 int indent_;
2026 }; 2028 };
2027 2029
2028 2030
2029 } } // namespace v8::internal 2031 } } // namespace v8::internal
2030 2032
2031 #endif // V8_HYDROGEN_H_ 2033 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698