~ubuntu-branches/ubuntu/precise/nodejs/precise

« back to all changes in this revision

Viewing changes to deps/v8/src/property.h

  • Committer: Bazaar Package Importer
  • Author(s): Jérémy Lal
  • Date: 2010-08-20 11:49:04 UTC
  • mfrom: (7.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100820114904-lz22w6fkth7yh179
Tags: 0.2.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
// the same CONSTANT_FUNCTION field.
116
116
class ConstTransitionDescriptor: public Descriptor {
117
117
 public:
118
 
  explicit ConstTransitionDescriptor(String* key)
119
 
      : Descriptor(key, Smi::FromInt(0), NONE, CONSTANT_TRANSITION) { }
 
118
  explicit ConstTransitionDescriptor(String* key, Map* map)
 
119
      : Descriptor(key, map, NONE, CONSTANT_TRANSITION) { }
120
120
};
121
121
 
122
122
 
260
260
 
261
261
  Map* GetTransitionMap() {
262
262
    ASSERT(lookup_type_ == DESCRIPTOR_TYPE);
263
 
    ASSERT(type() == MAP_TRANSITION);
 
263
    ASSERT(type() == MAP_TRANSITION || type() == CONSTANT_TRANSITION);
264
264
    return Map::cast(GetValue());
265
265
  }
266
266