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

Side by Side Diff: src/objects.h

Issue 382893003: Implement basic code generation for arrow functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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
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_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 7258 matching lines...) Expand 10 before | Expand all | Expand 10 after
7269 7269
7270 // Indicates that code for this function cannot be cached. 7270 // Indicates that code for this function cannot be cached.
7271 DECL_BOOLEAN_ACCESSORS(dont_cache) 7271 DECL_BOOLEAN_ACCESSORS(dont_cache)
7272 7272
7273 // Indicates that code for this function cannot be flushed. 7273 // Indicates that code for this function cannot be flushed.
7274 DECL_BOOLEAN_ACCESSORS(dont_flush) 7274 DECL_BOOLEAN_ACCESSORS(dont_flush)
7275 7275
7276 // Indicates that this function is a generator. 7276 // Indicates that this function is a generator.
7277 DECL_BOOLEAN_ACCESSORS(is_generator) 7277 DECL_BOOLEAN_ACCESSORS(is_generator)
7278 7278
7279 // Indicated that this function is an arrow function.
rossberg 2014/07/14 13:55:46 s/Indiciated/Indicates/
7280 DECL_BOOLEAN_ACCESSORS(is_arrow)
7281
7279 // Indicates whether or not the code in the shared function support 7282 // Indicates whether or not the code in the shared function support
7280 // deoptimization. 7283 // deoptimization.
7281 inline bool has_deoptimization_support(); 7284 inline bool has_deoptimization_support();
7282 7285
7283 // Enable deoptimization support through recompiled code. 7286 // Enable deoptimization support through recompiled code.
7284 void EnableDeoptimizationSupport(Code* recompiled); 7287 void EnableDeoptimizationSupport(Code* recompiled);
7285 7288
7286 // Disable (further) attempted optimization of all functions sharing this 7289 // Disable (further) attempted optimization of all functions sharing this
7287 // shared function info. 7290 // shared function info.
7288 void DisableOptimization(BailoutReason reason); 7291 void DisableOptimization(BailoutReason reason);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
7464 kHasDuplicateParameters, 7467 kHasDuplicateParameters,
7465 kNative, 7468 kNative,
7466 kInlineBuiltin, 7469 kInlineBuiltin,
7467 kBoundFunction, 7470 kBoundFunction,
7468 kIsAnonymous, 7471 kIsAnonymous,
7469 kNameShouldPrintAsAnonymous, 7472 kNameShouldPrintAsAnonymous,
7470 kIsFunction, 7473 kIsFunction,
7471 kDontCache, 7474 kDontCache,
7472 kDontFlush, 7475 kDontFlush,
7473 kIsGenerator, 7476 kIsGenerator,
7477 kIsArrow,
7474 kCompilerHintsCount // Pseudo entry 7478 kCompilerHintsCount // Pseudo entry
7475 }; 7479 };
7476 7480
7477 class DeoptCountBits: public BitField<int, 0, 4> {}; 7481 class DeoptCountBits: public BitField<int, 0, 4> {};
7478 class OptReenableTriesBits: public BitField<int, 4, 18> {}; 7482 class OptReenableTriesBits: public BitField<int, 4, 18> {};
7479 class ICAgeBits: public BitField<int, 22, 8> {}; 7483 class ICAgeBits: public BitField<int, 22, 8> {};
7480 7484
7481 class OptCountBits: public BitField<int, 0, 22> {}; 7485 class OptCountBits: public BitField<int, 0, 22> {};
7482 class DisabledOptimizationReasonBits: public BitField<int, 22, 8> {}; 7486 class DisabledOptimizationReasonBits: public BitField<int, 22, 8> {};
7483 7487
(...skipping 3743 matching lines...) Expand 10 before | Expand all | Expand 10 after
11227 } else { 11231 } else {
11228 value &= ~(1 << bit_position); 11232 value &= ~(1 << bit_position);
11229 } 11233 }
11230 return value; 11234 return value;
11231 } 11235 }
11232 }; 11236 };
11233 11237
11234 } } // namespace v8::internal 11238 } } // namespace v8::internal
11235 11239
11236 #endif // V8_OBJECTS_H_ 11240 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/objects-inl.h » ('j') | src/v8natives.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698