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

Side by Side Diff: src/ast.h

Issue 643913002: Bogus assert caused turbofan failure. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | no next file » | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_AST_H_ 5 #ifndef V8_AST_H_
6 #define V8_AST_H_ 6 #define V8_AST_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 1949 matching lines...) Expand 10 before | Expand all | Expand 10 after
1960 1960
1961 // Type feedback information. 1961 // Type feedback information.
1962 virtual int ComputeFeedbackSlotCount() { 1962 virtual int ComputeFeedbackSlotCount() {
1963 return (FLAG_vector_ics && is_jsruntime()) ? 1 : 0; 1963 return (FLAG_vector_ics && is_jsruntime()) ? 1 : 0;
1964 } 1964 }
1965 virtual void SetFirstFeedbackSlot(int slot) { 1965 virtual void SetFirstFeedbackSlot(int slot) {
1966 callruntime_feedback_slot_ = slot; 1966 callruntime_feedback_slot_ = slot;
1967 } 1967 }
1968 1968
1969 int CallRuntimeFeedbackSlot() { 1969 int CallRuntimeFeedbackSlot() {
1970 DCHECK(!is_jsruntime() ||
1971 callruntime_feedback_slot_ != kInvalidFeedbackSlot);
1972 return callruntime_feedback_slot_; 1970 return callruntime_feedback_slot_;
1973 } 1971 }
1974 1972
1975 TypeFeedbackId CallRuntimeFeedbackId() const { 1973 TypeFeedbackId CallRuntimeFeedbackId() const {
1976 return TypeFeedbackId(base_id() + 0); 1974 return TypeFeedbackId(base_id() + 0);
1977 } 1975 }
1978 1976
1979 protected: 1977 protected:
1980 CallRuntime(Zone* zone, const AstRawString* name, 1978 CallRuntime(Zone* zone, const AstRawString* name,
1981 const Runtime::Function* function, 1979 const Runtime::Function* function,
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after
3624 Zone* zone_; 3622 Zone* zone_;
3625 Visitor visitor_; 3623 Visitor visitor_;
3626 AstValueFactory* ast_value_factory_; 3624 AstValueFactory* ast_value_factory_;
3627 AstNode::IdGen* id_gen_; 3625 AstNode::IdGen* id_gen_;
3628 }; 3626 };
3629 3627
3630 3628
3631 } } // namespace v8::internal 3629 } } // namespace v8::internal
3632 3630
3633 #endif // V8_AST_H_ 3631 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698