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

Side by Side Diff: src/factory.cc

Issue 9152001: Introduce a new AccessorPair type for handling JavaScript accessors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 8 years, 11 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 int deopt_entry_count, 124 int deopt_entry_count,
125 PretenureFlag pretenure) { 125 PretenureFlag pretenure) {
126 ASSERT(deopt_entry_count > 0); 126 ASSERT(deopt_entry_count > 0);
127 CALL_HEAP_FUNCTION(isolate(), 127 CALL_HEAP_FUNCTION(isolate(),
128 DeoptimizationOutputData::Allocate(deopt_entry_count, 128 DeoptimizationOutputData::Allocate(deopt_entry_count,
129 pretenure), 129 pretenure),
130 DeoptimizationOutputData); 130 DeoptimizationOutputData);
131 } 131 }
132 132
133 133
134 Handle<AccessorPair> Factory::NewAccessorPair() {
135 CALL_HEAP_FUNCTION(isolate(),
136 isolate()->heap()->AllocateAccessorPair(),
137 AccessorPair);
138 }
139
140
134 // Symbols are created in the old generation (data space). 141 // Symbols are created in the old generation (data space).
135 Handle<String> Factory::LookupSymbol(Vector<const char> string) { 142 Handle<String> Factory::LookupSymbol(Vector<const char> string) {
136 CALL_HEAP_FUNCTION(isolate(), 143 CALL_HEAP_FUNCTION(isolate(),
137 isolate()->heap()->LookupSymbol(string), 144 isolate()->heap()->LookupSymbol(string),
138 String); 145 String);
139 } 146 }
140 147
141 // Symbols are created in the old generation (data space). 148 // Symbols are created in the old generation (data space).
142 Handle<String> Factory::LookupSymbol(Handle<String> string) { 149 Handle<String> Factory::LookupSymbol(Handle<String> string) {
143 CALL_HEAP_FUNCTION(isolate(), 150 CALL_HEAP_FUNCTION(isolate(),
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 1391
1385 1392
1386 Handle<Object> Factory::ToBoolean(bool value) { 1393 Handle<Object> Factory::ToBoolean(bool value) {
1387 return Handle<Object>(value 1394 return Handle<Object>(value
1388 ? isolate()->heap()->true_value() 1395 ? isolate()->heap()->true_value()
1389 : isolate()->heap()->false_value()); 1396 : isolate()->heap()->false_value());
1390 } 1397 }
1391 1398
1392 1399
1393 } } // namespace v8::internal 1400 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698