Skip to content

Commit 7462ede

Browse files
committed
Another round of changes; seems we're consistently referring to 6model objects now.
1 parent 1ed385e commit 7462ede

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

build/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ DYNEXT_TARGET = $(DYNEXT_DIR)/$(GROUP)$(LOAD_EXT)
138138
DYNPMC = $(PMC_DIR)/$(GROUP)$(LOAD_EXT)
139139
DYNOPS = $(OPS_DIR)/$(OPS)$(LOAD_EXT)
140140

141-
PMC_SOURCES = $(PMC_DIR)/stable.pmc $(PMC_DIR)/rakudoobject.pmc \
141+
PMC_SOURCES = $(PMC_DIR)/stable.pmc $(PMC_DIR)/sixmodelobject.pmc \
142142
$(PMC_DIR)/repr.pmc $(PMC_DIR)/dispatchersub.pmc \
143143
$(PMC_DIR)/nqpmultisig.pmc $(PMC_DIR)/nqplexinfo.pmc \
144144
$(PMC_DIR)/nqplexpad.pmc $(PMC_DIR)/serializationcontext.pmc

src/metamodel/multi_dispatch.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ typedef struct candidate_graph_node {
3636
/* Special value we set arity to when we have a slurpy. */
3737
#define SLURPY_ARITY 1 << 30
3838

39-
/* Cached type ID for RakudoObject. */
40-
static INTVAL ro_id = 0;
39+
/* Cached type ID for 6model Object. */
40+
static INTVAL smo_id = 0;
4141

4242
/* Definedness constraints. */
4343
#define DEFINED_ONLY 1
@@ -256,9 +256,9 @@ PMC *nqp_multi_dispatch(PARROT_INTERP, PMC *dispatcher, PMC *capture) {
256256
candidate_info** candidates = sort_candidates(interp, dispatchees);
257257
candidate_info** cur_candidate = candidates;
258258

259-
/* Ensure we know what is a Rakudo object and what is not. */
260-
if (!ro_id)
261-
ro_id = pmc_type(interp, Parrot_str_new(interp, "RakudoObject", 0));
259+
/* Ensure we know what is a 6model object and what is not. */
260+
if (!smo_id)
261+
smo_id = pmc_type(interp, Parrot_str_new(interp, "SixModelObject", 0));
262262

263263
/* Iterate over the candidates and collect best ones; terminate
264264
* when we see two nulls (may break out earlier). */
@@ -294,7 +294,7 @@ PMC *nqp_multi_dispatch(PARROT_INTERP, PMC *dispatcher, PMC *capture) {
294294

295295
for (i = 0; i < type_check_count; i++) {
296296
PMC * const param = VTABLE_get_pmc_keyed_int(interp, capture, i);
297-
PMC * const param_type = param->vtable->base_type == ro_id ?
297+
PMC * const param_type = param->vtable->base_type == smo_id ?
298298
STABLE(param)->WHAT : PMCNULL;
299299
PMC * const type_obj = (*cur_candidate)->types[i];
300300
INTVAL const definedness = (*cur_candidate)->definednesses[i];
@@ -304,7 +304,7 @@ PMC *nqp_multi_dispatch(PARROT_INTERP, PMC *dispatcher, PMC *capture) {
304304
}
305305
if (definedness) {
306306
/* Have a constraint on the definedness. */
307-
INTVAL defined = param->vtable->base_type == ro_id ?
307+
INTVAL defined = param->vtable->base_type == smo_id ?
308308
REPR(param)->defined(interp, REPR_PMC(param), param) :
309309
VTABLE_defined(interp, param);
310310
if (!defined && definedness == DEFINED_ONLY || defined && definedness == UNDEFINED_ONLY) {

src/metamodel/reprs/P6opaque.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
/* This is how an instance with the P6opaque representation starts. However, what
55
* follows on from this depends on the declaration. For object attributes, it will
6-
* be a pointer size and point to another RakudoObject. For native integers and
6+
* be a pointer size and point to another 6model Object. For native integers and
77
* numbers, it will be the appropriate sized piece of memory to store them
88
* right there in the object. Note that P6opaque does not do packed storage, so
99
* an int2 gets as much space as an int. */

src/metamodel/sixmodelobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ PMC * SixModelObject_initialize(PARROT_INTERP) {
2424
/* Look up and cache some type IDs and strings. */
2525
stable_id = pmc_type(interp, Parrot_str_new(interp, "STable", 0));
2626
repr_id = pmc_type(interp, Parrot_str_new(interp, "REPR", 0));
27-
smo_id = pmc_type(interp, Parrot_str_new(interp, "RakudoObject", 0));
27+
smo_id = pmc_type(interp, Parrot_str_new(interp, "SixModelObject", 0));
2828
sc_id = pmc_type(interp, Parrot_str_new(interp, "SerializationContext", 0));
2929
find_method_str = Parrot_str_new_constant(interp, "find_method");
3030
type_check_str = Parrot_str_new_constant(interp, "type_check");

src/ops/nqp.ops

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ inline op nqp_dynop_setup() :base_core {
4646
/* Look up and cache some type IDs. */
4747
stable_id = pmc_type(interp, Parrot_str_new(interp, "STable", 0));
4848
repr_id = pmc_type(interp, Parrot_str_new(interp, "REPR", 0));
49-
smo_id = pmc_type(interp, Parrot_str_new(interp, "RakudoObject", 0));
49+
smo_id = pmc_type(interp, Parrot_str_new(interp, "SixModelObject", 0));
5050
disp_id = pmc_type(interp, Parrot_str_new(interp, "DispatcherSub", 0));
5151
ms_id = pmc_type(interp, Parrot_str_new(interp, "NQPMultiSig", 0));
5252

src/pmc/rakudoobject.pmc renamed to src/pmc/sixmodelobject.pmc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#include "../metamodel/sixmodelobject.h"
2626

27-
pmclass RakudoObject manual_attrs dynpmc group nqp {
27+
pmclass SixModelObject manual_attrs dynpmc group nqp {
2828
/* ********************************************** *
2929
* These methods are mapped to 6model primitives. *
3030
* ********************************************** */

0 commit comments

Comments
 (0)