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

Side by Side Diff: src/factory.cc

Issue 9320: Semi-weekly merge from bleeding_edge to the toiger branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 12 years, 1 month 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 | « src/factory.h ('k') | src/handles.cc » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 } 83 }
84 84
85 85
86 Handle<String> Factory::NewRawTwoByteString(int length, 86 Handle<String> Factory::NewRawTwoByteString(int length,
87 PretenureFlag pretenure) { 87 PretenureFlag pretenure) {
88 CALL_HEAP_FUNCTION(Heap::AllocateRawTwoByteString(length, pretenure), String); 88 CALL_HEAP_FUNCTION(Heap::AllocateRawTwoByteString(length, pretenure), String);
89 } 89 }
90 90
91 91
92 Handle<String> Factory::NewConsString(Handle<String> first, 92 Handle<String> Factory::NewConsString(Handle<String> first,
93 Handle<String> second) { 93 StringShape first_shape,
94 if (first->length() == 0) return second; 94 Handle<String> second,
95 if (second->length() == 0) return first; 95 StringShape second_shape) {
96 CALL_HEAP_FUNCTION(Heap::AllocateConsString(*first, *second), String); 96 if (first->length(first_shape) == 0) return second;
97 if (second->length(second_shape) == 0) return first;
98 CALL_HEAP_FUNCTION(Heap::AllocateConsString(*first,
99 first_shape,
100 *second,
101 second_shape),
102 String);
97 } 103 }
98 104
99 105
100 Handle<String> Factory::NewStringSlice(Handle<String> str, int begin, int end) { 106 Handle<String> Factory::NewStringSlice(Handle<String> str,
101 CALL_HEAP_FUNCTION(str->Slice(begin, end), String); 107 StringShape shape,
108 int begin,
109 int end) {
110 CALL_HEAP_FUNCTION(str->Slice(shape, begin, end), String);
102 } 111 }
103 112
104 113
105 Handle<String> Factory::NewExternalStringFromAscii( 114 Handle<String> Factory::NewExternalStringFromAscii(
106 ExternalAsciiString::Resource* resource) { 115 ExternalAsciiString::Resource* resource) {
107 CALL_HEAP_FUNCTION(Heap::AllocateExternalStringFromAscii(resource), String); 116 CALL_HEAP_FUNCTION(Heap::AllocateExternalStringFromAscii(resource), String);
108 } 117 }
109 118
110 119
111 Handle<String> Factory::NewExternalStringFromTwoByte( 120 Handle<String> Factory::NewExternalStringFromTwoByte(
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 Execution::ConfigureInstance(instance, 838 Execution::ConfigureInstance(instance,
830 instance_template, 839 instance_template,
831 pending_exception); 840 pending_exception);
832 } else { 841 } else {
833 *pending_exception = false; 842 *pending_exception = false;
834 } 843 }
835 } 844 }
836 845
837 846
838 } } // namespace v8::internal 847 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698