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

Side by Side Diff: src/ast.h

Issue 19054006: Implement simple effect typing for variables (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments Created 7 years, 5 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/effects.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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 382
383 // TODO(rossberg): this should move to its own AST node eventually. 383 // TODO(rossberg): this should move to its own AST node eventually.
384 virtual void RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle); 384 virtual void RecordToBooleanTypeFeedback(TypeFeedbackOracle* oracle);
385 byte to_boolean_types() const { return to_boolean_types_; } 385 byte to_boolean_types() const { return to_boolean_types_; }
386 386
387 BailoutId id() const { return id_; } 387 BailoutId id() const { return id_; }
388 TypeFeedbackId test_id() const { return test_id_; } 388 TypeFeedbackId test_id() const { return test_id_; }
389 389
390 protected: 390 protected:
391 explicit Expression(Isolate* isolate) 391 explicit Expression(Isolate* isolate)
392 : bounds_(Type::None(), Type::Any(), isolate), 392 : bounds_(Bounds::Unbounded(isolate)),
393 id_(GetNextId(isolate)), 393 id_(GetNextId(isolate)),
394 test_id_(GetNextId(isolate)) {} 394 test_id_(GetNextId(isolate)) {}
395 void set_to_boolean_types(byte types) { to_boolean_types_ = types; } 395 void set_to_boolean_types(byte types) { to_boolean_types_ = types; }
396 396
397 private: 397 private:
398 Bounds bounds_; 398 Bounds bounds_;
399 byte to_boolean_types_; 399 byte to_boolean_types_;
400 400
401 const BailoutId id_; 401 const BailoutId id_;
402 const TypeFeedbackId test_id_; 402 const TypeFeedbackId test_id_;
(...skipping 2806 matching lines...) Expand 10 before | Expand all | Expand 10 after
3209 private: 3209 private:
3210 Isolate* isolate_; 3210 Isolate* isolate_;
3211 Zone* zone_; 3211 Zone* zone_;
3212 Visitor visitor_; 3212 Visitor visitor_;
3213 }; 3213 };
3214 3214
3215 3215
3216 } } // namespace v8::internal 3216 } } // namespace v8::internal
3217 3217
3218 #endif // V8_AST_H_ 3218 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/effects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698