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

Side by Side Diff: src/hydrogen.h

Issue 236193014: Handlify AddDependentCode(), AddDependentCompilationInfo() and AddDependentIC(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address nit Created 6 years, 8 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 | « no previous file | src/hydrogen.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 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 is_recursive_ = true; 431 is_recursive_ = true;
432 } 432 }
433 433
434 bool is_recursive() const { 434 bool is_recursive() const {
435 return is_recursive_; 435 return is_recursive_;
436 } 436 }
437 437
438 void MarkDependsOnEmptyArrayProtoElements() { 438 void MarkDependsOnEmptyArrayProtoElements() {
439 // Add map dependency if not already added. 439 // Add map dependency if not already added.
440 if (depends_on_empty_array_proto_elements_) return; 440 if (depends_on_empty_array_proto_elements_) return;
441 isolate()->initial_object_prototype()->map()->AddDependentCompilationInfo( 441 Map::AddDependentCompilationInfo(
442 handle(isolate()->initial_object_prototype()->map()),
442 DependentCode::kElementsCantBeAddedGroup, info()); 443 DependentCode::kElementsCantBeAddedGroup, info());
443 isolate()->initial_array_prototype()->map()->AddDependentCompilationInfo( 444 Map::AddDependentCompilationInfo(
445 handle(isolate()->initial_array_prototype()->map()),
444 DependentCode::kElementsCantBeAddedGroup, info()); 446 DependentCode::kElementsCantBeAddedGroup, info());
445 depends_on_empty_array_proto_elements_ = true; 447 depends_on_empty_array_proto_elements_ = true;
446 } 448 }
447 449
448 bool depends_on_empty_array_proto_elements() { 450 bool depends_on_empty_array_proto_elements() {
449 return depends_on_empty_array_proto_elements_; 451 return depends_on_empty_array_proto_elements_;
450 } 452 }
451 453
452 bool has_uint32_instructions() { 454 bool has_uint32_instructions() {
453 ASSERT(uint32_instructions_ == NULL || !uint32_instructions_->is_empty()); 455 ASSERT(uint32_instructions_ == NULL || !uint32_instructions_->is_empty());
(...skipping 2348 matching lines...) Expand 10 before | Expand all | Expand 10 after
2802 } 2804 }
2803 2805
2804 private: 2806 private:
2805 HGraphBuilder* builder_; 2807 HGraphBuilder* builder_;
2806 }; 2808 };
2807 2809
2808 2810
2809 } } // namespace v8::internal 2811 } } // namespace v8::internal
2810 2812
2811 #endif // V8_HYDROGEN_H_ 2813 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698